public class DefaultQueueStore extends Object implements RecoverableQueueStore
| Constructor and Description |
|---|
DefaultQueueStore(String name,
MuleContext muleContext,
QueueConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
boolean |
contains(Serializable value)
Checks if a certain object exists in the queue.
|
void |
dispose() |
boolean |
equals(Object obj) |
int |
getCapacity() |
String |
getName() |
int |
getSize() |
int |
hashCode() |
boolean |
isPersistent() |
boolean |
offer(Serializable o,
int room,
long timeout) |
Serializable |
peek() |
Serializable |
poll(long timeout) |
void |
putNow(Serializable o) |
void |
remove(Serializable value)
Removes the value from the queue.
|
void |
setConfig(QueueConfiguration config) |
void |
untake(Serializable item) |
public DefaultQueueStore(String name, MuleContext muleContext, QueueConfiguration config)
public void setConfig(QueueConfiguration config)
public String getName()
getName in interface QueueStorepublic void putNow(Serializable o)
putNow in interface QueueStorepublic boolean offer(Serializable o, int room, long timeout) throws InterruptedException
offer in interface QueueStoreInterruptedExceptionpublic Serializable poll(long timeout) throws InterruptedException
poll in interface QueueStoreInterruptedExceptionpublic Serializable peek() throws InterruptedException
peek in interface QueueStoreInterruptedExceptionpublic void untake(Serializable item) throws InterruptedException
untake in interface QueueStoreInterruptedExceptionpublic int getSize()
getSize in interface QueueStorepublic void clear()
throws InterruptedException
clear in interface QueueStoreInterruptedExceptionpublic void dispose()
dispose in interface QueueStorepublic int getCapacity()
getCapacity in interface QueueStorepublic void remove(Serializable value)
RecoverableQueueStoreremove in interface RecoverableQueueStorevalue - object to be removedpublic boolean contains(Serializable value)
RecoverableQueueStorecontains in interface RecoverableQueueStorevalue - object to search in the queuepublic void close()
close in interface QueueStorepublic boolean isPersistent()
isPersistent in interface QueueStoreCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.