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 primitivedoublemessages.DoubleReceivePort A primitivedoublechannel's consumer-side interface.DoubleSendPort A primitivedoublechannel's producer-side interface.FloatChannel A channel for primitivefloatmessages.FloatReceivePort A primitivefloatchannel's consumer-side interface.FloatSendPort A primitivefloatchannel's producer-side interface.IntChannel A channel for primitiveintmessages.IntReceivePort A primitiveintchannel's consumer-side interface.IntSendPort A primitiveintchannel's producer-side interface.LongChannel A channel for primitivedoublemessages.LongReceivePort A primitivelongchannel's consumer-side interface.LongSendPort A primitivelongchannel's producer-side interface.Mix<M> ReceivePortwith Mix operations.Port<Message> An empty super-interface ofSendPortandReceivePortextend.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 aroundReceivePortthat can be used by threads (as opposed to fibers).ThreadSendPort<Message> This class is a simple convenience wrapper aroundSendPortthat can be used by threads (as opposed to fibers).TickerChannelConsumer<Message> AReceivePortwhich 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> AReceivePortwith 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'sreceiveortryReceivemethods if the channel has beenclosed with an exception.ReceivePort.EOFException