1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.jdiagnose.concurrent;
16
17 /***
18 * A channel that is known to have a capacity, signifying
19 * that <code>put</code> operations may block when the
20 * capacity is reached. Various implementations may have
21 * intrinsically hard-wired capacities, capacities that are fixed upon
22 * construction, or dynamically adjustable capacities.
23 * @see DefaultChannelCapacity
24 * <p>[<a href="http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html"> Introduction to this package. </a>] <p>
25 **/
26
27 public interface BoundedChannel extends Channel {
28 /***
29 * Return the maximum number of elements that can be held.
30 * @return the capacity of this channel.
31 **/
32 public int capacity();
33 }