org.apache.cocoon.components.thread
Interface Queue

All Superinterfaces:
EDU.oswego.cs.dl.util.concurrent.Channel, EDU.oswego.cs.dl.util.concurrent.Puttable, EDU.oswego.cs.dl.util.concurrent.Takable
All Known Implementing Classes:
BoundedQueue, LinkedQueue, SynchronousChannel

public interface Queue
extends EDU.oswego.cs.dl.util.concurrent.Channel

Extension to add queue size reporting

Version:
CVS $Id: Queue.java 321157 2005-10-14 17:21:29Z cziegeler $
Author:
Giacomo Pati
See Also:
Channel

Method Summary
 int getQueueSize()
          get the current queue size
 
Methods inherited from interface EDU.oswego.cs.dl.util.concurrent.Channel
offer, peek, poll, put, take
 

Method Detail

getQueueSize

public int getQueueSize()
get the current queue size

Returns:
current size of queue. If the size of the queue is not maintained by an implementation -1 should be returned.


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.