org.mule.util.queue
Interface Queue


public interface Queue

Queue TODO


Method Summary
 boolean offer(Object o, long timeout)
           
 Object peek()
           
 Object poll(long timeout)
           
 void put(Object o)
          Puts a new object in this queue and wait if necessary.
 int size()
          Returns the number of elements in this queue.
 Object take()
          Blocks and retrieves an object from this queue.
 

Method Detail

size

int size()
Returns the number of elements in this queue.

Returns:

put

void put(Object o)
         throws InterruptedException
Puts a new object in this queue and wait if necessary.

Parameters:
o - the object to put
Throws:
InterruptedException

take

Object take()
            throws InterruptedException
Blocks and retrieves an object from this queue.

Returns:
an object.
Throws:
InterruptedException

peek

Object peek()
            throws InterruptedException
Throws:
InterruptedException

poll

Object poll(long timeout)
            throws InterruptedException
Throws:
InterruptedException

offer

boolean offer(Object o,
              long timeout)
              throws InterruptedException
Throws:
InterruptedException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.