public static class FanOut.OutputBunch
extends java.lang.Object
Constructor and Description |
---|
OutputBunch(int outputCount,
ActorRef impl,
Pump pump) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
AllOfMarkedOutputs()
Will only transfer an element when all marked outputs
have demand, and will complete as soon as any of the marked
outputs have canceled.
|
java.lang.Object |
AnyOfMarkedOutputs()
Will transfer an element when any of the marked outputs
have demand, and will complete when all of the marked
outputs have canceled.
|
void |
cancel(java.lang.Throwable e) |
void |
complete() |
void |
complete(int output) |
java.lang.Object |
demandAvailableFor(int id) |
java.lang.Object |
demandOrCancelAvailableFor(int id) |
void |
enqueue(int id,
java.lang.Object elem) |
void |
enqueueAndPrefer(java.lang.Object elem,
int preferred) |
void |
enqueueAndYield(java.lang.Object elem) |
void |
enqueueMarked(java.lang.Object elem) |
void |
error(int output,
java.lang.Throwable e) |
int |
idToEnqueue() |
int |
idToEnqueueAndYield() |
boolean |
isCancelled(int output) |
boolean |
isCompleted(int output) |
boolean |
isErrored(int output) |
boolean |
isPending(int output) |
void |
markAllOutputs() |
void |
markOutput(int output) |
void |
onCancel(int output) |
SubReceive |
subreceive() |
java.lang.String |
toString() |
void |
unmarkAllOutputs() |
void |
unmarkCancelledOutputs(boolean enabled) |
void |
unmarkOutput(int output) |
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPending(int output)
public boolean isCompleted(int output)
public boolean isCancelled(int output)
public boolean isErrored(int output)
public void complete()
public void complete(int output)
public void cancel(java.lang.Throwable e)
public void error(int output, java.lang.Throwable e)
public void markOutput(int output)
public void unmarkOutput(int output)
public void markAllOutputs()
public void unmarkAllOutputs()
public void unmarkCancelledOutputs(boolean enabled)
public int idToEnqueue()
public void enqueue(int id, java.lang.Object elem)
public void enqueueMarked(java.lang.Object elem)
public int idToEnqueueAndYield()
public void enqueueAndYield(java.lang.Object elem)
public void enqueueAndPrefer(java.lang.Object elem, int preferred)
public void onCancel(int output)
public java.lang.Object demandAvailableFor(int id)
public java.lang.Object demandOrCancelAvailableFor(int id)
public java.lang.Object AllOfMarkedOutputs()
public java.lang.Object AnyOfMarkedOutputs()
public SubReceive subreceive()