EDU.oswego.cs.dl.util.concurrent
Interface BoundedChannel
- Channel, Puttable, Takable
- BoundedBuffer, BoundedLinkedQueue, BoundedPriorityQueue, CVBuffer, FIFOSlot, PipedChannel, SemaphoreControlledChannel, Slot, SynchronousChannel
public interface BoundedChannel
A channel that is known to have a capacity, signifying
that put
operations may block when the
capacity is reached. Various implementations may have
intrinsically hard-wired capacities, capacities that are fixed upon
construction, or dynamically adjustable capacities.
int | capacity() - Return the maximum number of elements that can be held.
|
capacity
public int capacity()
Return the maximum number of elements that can be held.
- the capacity of this channel.