org.mule.util.queue
Class QueueInfo
java.lang.Object
org.mule.util.queue.QueueInfo
public class QueueInfo
- extends Object
Stores information about a Queue
QueueInfo
public QueueInfo(String name,
MuleContext muleContext,
QueueConfiguration config)
QueueInfo
public QueueInfo(QueueInfo other)
setConfig
public void setConfig(QueueConfiguration config)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getName
public String getName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
putNow
public void putNow(Serializable o)
offer
public boolean offer(Serializable o,
int room,
long timeout)
throws InterruptedException,
ObjectStoreException
- Throws:
InterruptedException
ObjectStoreException
poll
public Serializable poll(long timeout)
throws InterruptedException
- Throws:
InterruptedException
peek
public Serializable peek()
throws InterruptedException
- Throws:
InterruptedException
untake
public void untake(Serializable item)
throws InterruptedException,
ObjectStoreException
- Throws:
InterruptedException
ObjectStoreException
getSize
public int getSize()
getStore
public ListableObjectStore<Serializable> getStore()
registerDelegateFactory
public static void registerDelegateFactory(Class<? extends ObjectStore> storeType,
QueueInfo.QueueInfoDelegateFactory factory)
getCapacity
public int getCapacity()
canTakeFromStore
public boolean canTakeFromStore()
takeNextItemFromStore
public Serializable takeNextItemFromStore(long timeout)
throws InterruptedException
- Throws:
InterruptedException
writeToObjectStore
public void writeToObjectStore(Serializable data)
throws InterruptedException,
ObjectStoreException
- Throws:
InterruptedException
ObjectStoreException
isQueueTransient
public boolean isQueueTransient()
isQueueTransactional
public boolean isQueueTransactional()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.