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 QueueStore
public void putNow(Serializable o)
putNow
in interface QueueStore
public boolean offer(Serializable o, int room, long timeout) throws InterruptedException
offer
in interface QueueStore
InterruptedException
public Serializable poll(long timeout) throws InterruptedException
poll
in interface QueueStore
InterruptedException
public Serializable peek() throws InterruptedException
peek
in interface QueueStore
InterruptedException
public void untake(Serializable item) throws InterruptedException
untake
in interface QueueStore
InterruptedException
public int getSize()
getSize
in interface QueueStore
public void clear() throws InterruptedException
clear
in interface QueueStore
InterruptedException
public void dispose()
dispose
in interface QueueStore
public int getCapacity()
getCapacity
in interface QueueStore
public void remove(Serializable value)
RecoverableQueueStore
remove
in interface RecoverableQueueStore
value
- object to be removedpublic boolean contains(Serializable value)
RecoverableQueueStore
contains
in interface RecoverableQueueStore
value
- object to search in the queuepublic void close()
close
in interface QueueStore
public boolean isPersistent()
isPersistent
in interface QueueStore
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.