package io.bisq.network.p2p.storage.payload;


import io.bisq.common.proto.network.NetworkPayload;
import io.bisq.common.proto.persistable.PersistablePayload;

/**
 * Messages which support a time to live
 * <p/>
 * Implementations:
 *
 * @see ProtectedStoragePayload
 * @see MailboxStoragePayload
 */
// TODO PersistablePayload should not be here. 
public interface ExpirablePayload extends NetworkPayload, PersistablePayload {
    /**
     * @return Time to live in milli seconds
     */
    long getTTL();
}

package io.bisq.network.p2p.storage.payload;


import io.bisq.common.proto.network.NetworkPayload;

/**
 * Messages which support a time to live
 * <p/>
 * Implementations:
 *
 * @see ProtectedStoragePayload
 * @see MailboxStoragePayload
 */
public interface ExpirablePayload extends NetworkPayload {
    /**
     * @return Time to live in milli seconds
     */
    long getTTL();
}

Remove base interface PersistablePayload from ExpirablePayload