org.dbunit.util.concurrent
Interface BoundedChannel
- All Superinterfaces:
- Channel, Puttable, Takable
- All Known Implementing Classes:
- BoundedBuffer, BoundedLinkedQueue, SemaphoreControlledChannel, Slot, SynchronousChannel
public interface BoundedChannel
- extends Channel
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: 766 $ $Date: 2008-08-01 13:05:20 +0200 (Fri, 01 Aug 2008) $
- Author:
- Doug Lea, Last changed by: $Author: gommma $
- See Also:
[ Introduction to this package. ]
Method Summary |
int |
capacity()
Return the maximum number of elements that can be held. |
capacity
int capacity()
- Return the maximum number of elements that can be held.
- Returns:
- the capacity of this channel.
Copyright © 2002-2012. All Rights Reserved.