Package co.paralleluniverse.strands.channels
Channels - a CSP (Communicating Sequential Processes) construct
-
Interface Summary Interface Description Channel<Message> A message-passing channel.DoubleChannel A channel for primitivedouble
messages.DoubleReceivePort A primitivedouble
channel's consumer-side interface.DoubleSendPort A primitivedouble
channel's producer-side interface.FloatChannel A channel for primitivefloat
messages.FloatReceivePort A primitivefloat
channel's consumer-side interface.FloatSendPort A primitivefloat
channel's producer-side interface.IntChannel A channel for primitiveint
messages.IntReceivePort A primitiveint
channel's consumer-side interface.IntSendPort A primitiveint
channel's producer-side interface.LongChannel A channel for primitivedouble
messages.LongReceivePort A primitivelong
channel's consumer-side interface.LongSendPort A primitivelong
channel's producer-side interface.Mix<M> ReceivePort
with Mix operations.Port<Message> An empty super-interface ofSendPort
andReceivePort
extend.PortAutoCloseable ReceivePort<Message> A channel's consumer-side functional interface.Selectable<Message> A channel port that can be used by aSelector
.SelectReceiveListener<Message> A listener associated with areceive SelectAction
, which is called if an only if the associated action has succeeded.SelectSendListener<Message> A listener associated with asend SelectAction
, which is called if an only if the associated action has succeeded.SendPort<Message> A channel's producer-side functional interface.StandardChannel<Message> A common interface for standard channel implementations -
Class Summary Class Description Channels A utility class for creating and manipulating channels.DelegatingReceivePort<T> DelegatingSendPort<T> FlatMappingReceivePort<S,T> Mix.State QueueChannel<Message> QueueDoubleChannel QueueFloatChannel QueueIntChannel QueueLongChannel QueueObjectChannel<Message> QueuePrimitiveChannel<Message> Single consumer!ReceivePortGroup<M> SelectAction<Message> A channel operation that is selected by aSelector
.Selector<Message> Attempts to perform at most one channel operation (send or receive) of a given set.SingleConsumerQueueChannel<Message> SplitSendPort<Message> ThreadReceivePort<Message> This class is a simple convenience wrapper aroundReceivePort
that can be used by threads (as opposed to fibers).ThreadSendPort<Message> This class is a simple convenience wrapper aroundSendPort
that can be used by threads (as opposed to fibers).TickerChannelConsumer<Message> AReceivePort
which is a view of aticker channel
.TickerChannelConsumer.TickerChannelFloatConsumer TimeoutChannel<Message> Topic<Message> A channel that forwards all messages to subscriber channels.TransferChannel<Message> TransformingReceivePort<T> AReceivePort
with additional functional-transform operations, usually wrapping a plainReceivePort
.TransformingSendPort<T> ZippingReceivePort<Message> Single consumer -
Enum Summary Enum Description Channels.OverflowPolicy Determines how a channel behaves when its internal buffer (if it has one) overflows.Mix.Mode Mix.SoloEffect -
Exception Summary Exception Description ChannelClosedException ProducerException This exception is thrown by aReceivePort
'sreceive
ortryReceive
methods if the channel has beenclosed with an exception
.ReceivePort.EOFException