Package org.apache.qpid.util.concurrent

Interface Summary
BatchSynchQueue<E> BatchSynchQueue is an abstraction of the classic producer/consumer buffer pattern for thread interaction.
Capacity An interface exposed by data structures that have a maximum capacity.
SynchRecord<E> SynchRecord associates a data item from a BatchSynchQueue with its producer.
SynchRef A SynchRef is an interface which is returned from the synchronous take and drain methods of BatchSynchQueue, allowing call-backs to be made against the synchronizing strucutre.
 

Class Summary
BatchSynchQueueBase<E> Synchronous/Asynchronous puts.
BooleanLatch A BooleanLatch is like a set of traffic lights, where threads can wait at a red light until another thread gives the green light.
SynchBuffer<E> SynchBuffer completes the BatchSynchQueueBase abstract class by providing an implementation of the underlying queue as an array.
SynchQueue<E> SynchQueue completes the BatchSynchQueueBase abstract class by providing an implementation of the underlying queue as a linked list.
 

Exception Summary
AlreadyUnblockedException Used to signal that a data element and its producer cannot be requeued or sent an error message when using a BatchSynchQueue because the producer has already been unblocked by an unblocking take on the queue.
SynchException SynchException is used to encapsulate exceptions with the data elements that caused them in order to send exceptions back from the consumers of a BatchSynchQueue to producers.
 



Licensed to the Apache Software Foundation