Package org.dbunit.util.concurrent
Interface BoundedChannel
- All Known Implementing Classes:
BoundedBuffer,BoundedLinkedQueue,SemaphoreControlledChannel,Slot,SynchronousChannel
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.- Since:
- ? (pre 2.1)
- Version:
- $Revision$ $Date$
- Author:
- Doug Lea, Last changed by: $Author$
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Return the maximum number of elements that can be held.
-
Method Details
-
capacity
int capacity()Return the maximum number of elements that can be held.- Returns:
- the capacity of this channel.
-