01: /*
02: File: BoundedChannel.java
03:
04: Originally written by Doug Lea and released into the public domain.
05: This may be used for any purposes whatsoever without acknowledgment.
06: Thanks for the assistance and support of Sun Microsystems Labs,
07: and everyone contributing, testing, and using this code.
08:
09: History:
10: Date Who What
11: 11Jun1998 dl Create public version
12: */
13:
14: package EDU.oswego.cs.dl.util.concurrent;
15:
16: /**
17: * A channel that is known to have a capacity, signifying
18: * that <code>put</code> operations may block when the
19: * capacity is reached. Various implementations may have
20: * intrinsically hard-wired capacities, capacities that are fixed upon
21: * construction, or dynamically adjustable capacities.
22: * @see DefaultChannelCapacity
23: * <p>[<a href="http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html"> Introduction to this package. </a>] <p>
24: **/
25:
26: public interface BoundedChannel extends Channel {
27: /**
28: * Return the maximum number of elements that can be held.
29: * @return the capacity of this channel.
30: **/
31: public int capacity();
32: }
|