public class BroadcastBatchOperation.BcastReceiver extends java.lang.Object implements BulkReceiver
Constructor and Description |
---|
BcastReceiver() |
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
|
boolean |
sync(int target,
byte[] message)
A sync event has occurred
|
public void init(Config cfg, java.util.Set<java.lang.Integer> targets)
BulkReceiver
init
in interface BulkReceiver
cfg
- configurationtargets
- expected targetspublic boolean receive(int target, java.util.Iterator<java.lang.Object> it)
BulkReceiver
receive
in interface BulkReceiver
target
- the targetit
- iterator with messagespublic boolean sync(int target, byte[] message)
BulkReceiver
sync
in interface BulkReceiver
target
- the target id