public class SKeyedGatherExample.GatherBulkReceiver extends java.lang.Object implements BulkReceiver
Constructor and Description |
---|
GatherBulkReceiver() |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sync
public void init(Config cfg, java.util.Set<java.lang.Integer> expectedIds)
BulkReceiver
init
in interface BulkReceiver
cfg
- configurationexpectedIds
- expected targetspublic boolean receive(int target, java.util.Iterator<java.lang.Object> it)
BulkReceiver
receive
in interface BulkReceiver
target
- the targetit
- iterator with messages