public interface Mix<M> extends ReceivePort<M>
ReceivePort with Mix operations.| Modifier and Type | Interface and Description |
|---|---|
static class |
Mix.Mode |
static class |
Mix.SoloEffect |
static class |
Mix.State |
ReceivePort.EOFException| Modifier and Type | Method and Description |
|---|---|
<T extends ReceivePort<? extends M>> |
add(T... items) |
Mix.SoloEffect |
getSoloEffect() |
<T extends ReceivePort<? extends M>> |
getState(T... items) |
<T extends ReceivePort<? extends M>> |
remove(T... items) |
void |
setSoloEffect(Mix.SoloEffect effect) |
<T extends ReceivePort<? extends M>> |
setState(java.util.Map<T,Mix.State> states) |
<T extends ReceivePort<? extends M>> |
setState(Mix.State state,
T... items) |
receive, receive, receive, tryReceiveclose, isClosed<T extends ReceivePort<? extends M>> void add(T... items) throws SuspendExecution, java.lang.InterruptedException
SuspendExecutionjava.lang.InterruptedException<T extends ReceivePort<? extends M>> void remove(T... items) throws SuspendExecution, java.lang.InterruptedException
items - If null or empty, all items will be removed.SuspendExecutionjava.lang.InterruptedException<T extends ReceivePort<? extends M>> java.util.Map<T,Mix.State> getState(T... items)
items - If null or empty, all items will be removed.<T extends ReceivePort<? extends M>> void setState(Mix.State state, T... items) throws SuspendExecution, java.lang.InterruptedException
items - If null or empty, all items state will be set to state.SuspendExecutionjava.lang.InterruptedException<T extends ReceivePort<? extends M>> void setState(java.util.Map<T,Mix.State> states) throws SuspendExecution, java.lang.InterruptedException
SuspendExecutionjava.lang.InterruptedExceptionMix.SoloEffect getSoloEffect()
void setSoloEffect(Mix.SoloEffect effect) throws SuspendExecution, java.lang.InterruptedException
SuspendExecutionjava.lang.InterruptedException