Interface Mix<M>
-
- All Superinterfaces:
java.lang.AutoCloseable,Port<M>,PortAutoCloseable,ReceivePort<M>
- All Known Implementing Classes:
ReceivePortGroup
public interface Mix<M> extends ReceivePort<M>
ReceivePortwith Mix operations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMix.Modestatic classMix.SoloEffectstatic classMix.State-
Nested classes/interfaces inherited from interface co.paralleluniverse.strands.channels.ReceivePort
ReceivePort.EOFException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ReceivePort<? extends M>>
voidadd(T... items)Mix.SoloEffectgetSoloEffect()<T extends ReceivePort<? extends M>>
java.util.Map<T,Mix.State>getState(T... items)<T extends ReceivePort<? extends M>>
voidremove(T... items)voidsetSoloEffect(Mix.SoloEffect effect)<T extends ReceivePort<? extends M>>
voidsetState(Mix.State state, T... items)<T extends ReceivePort<? extends M>>
voidsetState(java.util.Map<T,Mix.State> states)-
Methods inherited from interface co.paralleluniverse.strands.channels.PortAutoCloseable
close, isClosed
-
Methods inherited from interface co.paralleluniverse.strands.channels.ReceivePort
receive, receive, receive, tryReceive
-
-
-
-
Method Detail
-
add
<T extends ReceivePort<? extends M>> void add(T... items) throws SuspendExecution, java.lang.InterruptedException
- Throws:
SuspendExecutionjava.lang.InterruptedException
-
remove
<T extends ReceivePort<? extends M>> void remove(T... items) throws SuspendExecution, java.lang.InterruptedException
- Parameters:
items- Ifnullor empty, all items will be removed.- Throws:
SuspendExecutionjava.lang.InterruptedException
-
getState
<T extends ReceivePort<? extends M>> java.util.Map<T,Mix.State> getState(T... items)
- Parameters:
items- Ifnullor empty, all items will be removed.
-
setState
<T extends ReceivePort<? extends M>> void setState(Mix.State state, T... items) throws SuspendExecution, java.lang.InterruptedException
- Parameters:
items- Ifnullor empty, all items state will be set tostate.- Throws:
SuspendExecutionjava.lang.InterruptedException
-
setState
<T extends ReceivePort<? extends M>> void setState(java.util.Map<T,Mix.State> states) throws SuspendExecution, java.lang.InterruptedException
- Throws:
SuspendExecutionjava.lang.InterruptedException
-
getSoloEffect
Mix.SoloEffect getSoloEffect()
-
setSoloEffect
void setSoloEffect(Mix.SoloEffect effect) throws SuspendExecution, java.lang.InterruptedException
- Throws:
SuspendExecutionjava.lang.InterruptedException
-
-