mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Add CapabilityAwarePayload interface
This commit is contained in:
parent
2e349f6c29
commit
eea589c9ac
1 changed files with 18 additions and 0 deletions
|
@ -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();
|
||||
}
|
Loading…
Add table
Reference in a new issue