public interface BulkReceiver
| Modifier and Type | Method and Description |
|---|---|
void |
init(Config cfg,
java.util.Set<java.lang.Integer> targets)
Initialize the receiver
|
boolean |
receive(int target,
java.util.Iterator<java.lang.Object> it)
Receive to specific target
|
default boolean |
sync(int target,
byte[] message)
A sync event has occurred
|
void init(Config cfg, java.util.Set<java.lang.Integer> targets)
cfg - configurationtargets - expected targetsboolean receive(int target,
java.util.Iterator<java.lang.Object> it)
target - the targetit - iterator with messagesdefault boolean sync(int target,
byte[] message)
target - the target id