public class PartitionBatchOperation.PartitionReceiver extends java.lang.Object implements BulkReceiver
| Constructor and Description |
|---|
PartitionReceiver() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Config cfg,
java.util.Set<java.lang.Integer> expectedIds)
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> expectedIds)
BulkReceiverinit in interface BulkReceivercfg - configurationexpectedIds - expected targetspublic boolean receive(int target,
java.util.Iterator<java.lang.Object> it)
BulkReceiverreceive in interface BulkReceivertarget - the targetit - iterator with messagespublic boolean sync(int target,
byte[] message)
BulkReceiversync in interface BulkReceivertarget - the target id