org.mule.util.queue
Interface Queue


public interface Queue

Queue TODO


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

Method Detail

size

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


put

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

Parameters:
o - the object to put
Throws:
java.lang.InterruptedException

take

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

Returns:
an object.
Throws:
java.lang.InterruptedException

untake

void untake(java.lang.Object item)
            throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

peek

java.lang.Object peek()
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

poll

java.lang.Object poll(long timeout)
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

offer

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

getName

java.lang.String getName()


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.