Add CapabilityAwarePayload interface

This commit is contained in:
Manfred Karrer 2016-07-23 14:45:09 +02:00
parent 2e349f6c29
commit eea589c9ac

View file

@ -0,0 +1,18 @@
package io.bitsquare.p2p.storage.payload;
import io.bitsquare.common.wire.Payload;
import java.util.List;
/**
* Used for messages which require that the data owner is online.
* <p>
* This is used for the offers to avoid dead offers in case the offerer is in standby mode or the app has
* terminated without sending the remove message (e.g. network connection lost or in case of a crash).
*/
public interface CapabilityAwarePayload extends Payload {
/**
* @return Capabilities the other node need to support to receive that message
*/
List<Integer> getRequiredCapabilities();
}