org.mule.util.queue
Interface QueueStoreDelegate

All Known Subinterfaces:
TakingQueueStoreDelegate, TransactionalQueueStoreDelegate, TransactionalQueueStoreDelegate
All Known Implementing Classes:
AbstractQueueStoreDelegate, DefaultQueueStoreDelegate, DualRandomAccessFileQueueStoreDelegate

public interface QueueStoreDelegate

A DefaultQueueStore delegates the actual work of processing its queue to one of these.


Method Summary
 boolean addAll(Collection<? extends Serializable> items)
          Appends all of the elements in the specified collection to the queue (optional operation).
 void clear()
          Discards all the elements in the queue
 void dispose()
          Deletes the queue and it's content.
 int getSize()
          Return the size of the queue
 boolean offer(Serializable o, int room, long timeout)
          Offer to append a new member to the end of the queue
 Serializable peek()
          return, but do not remove, the first member of the queue
 Serializable poll(long timeout)
          Poll the queue for its first member, and, if there is one, remove and return it
 void putNow(Serializable o)
          append a new member to the end of the queue
 void untake(Serializable item)
          Restore a previously removed member to the front of the queue
 

Method Detail

putNow

void putNow(Serializable o)
append a new member to the end of the queue


offer

boolean offer(Serializable o,
              int room,
              long timeout)
              throws InterruptedException
Offer to append a new member to the end of the queue

Throws:
InterruptedException

poll

Serializable poll(long timeout)
                  throws InterruptedException
Poll the queue for its first member, and, if there is one, remove and return it

Throws:
InterruptedException

peek

Serializable peek()
                  throws InterruptedException
return, but do not remove, the first member of the queue

Throws:
InterruptedException

untake

void untake(Serializable item)
            throws InterruptedException
Restore a previously removed member to the front of the queue

Throws:
InterruptedException

getSize

int getSize()
Return the size of the queue


clear

void clear()
           throws InterruptedException
Discards all the elements in the queue

Throws:
InterruptedException

addAll

boolean addAll(Collection<? extends Serializable> items)
Appends all of the elements in the specified collection to the queue (optional operation).

Parameters:
items - to be added to the queue
Returns:
true if this queue changed as a result of the call

dispose

void dispose()
Deletes the queue and it's content.



Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.