Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.util.queue
Interface Queue

    public interface Queue

`Queue` TODO

Method Summary
`String` | `getName()`
`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.

### 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`

### getName

    String getName()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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