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

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

Extension to add queue size reporting

Version:
$Id: Queue.java 489488 2006-12-21 22:38:17Z danielf $
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-2007 The Apache Software Foundation. All Rights Reserved.