Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ematgine.utils.concurrent
Interface BoundedChannel  view BoundedChannel download BoundedChannel.java

All Superinterfaces:
Channel, Puttable, Takable
All Known Implementing Classes:
BoundedBuffer, BoundedLinkedQueue, SemaphoreControlledChannel, 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.


Method Summary
 int capacity()
          Return the maximum number of elements that can be held.
 
Methods inherited from interface org.ematgine.utils.concurrent.Channel
offer, peek, poll, put, take
 

Method Detail

capacity

public int capacity()
Return the maximum number of elements that can be held.