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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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

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-2010 The Apache Software Foundation. All Rights Reserved.