|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.util.queue.MemoryPersistenceStrategy
public class MemoryPersistenceStrategy
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.mule.util.queue.QueuePersistenceStrategy |
---|
QueuePersistenceStrategy.Holder |
Constructor Summary | |
---|---|
MemoryPersistenceStrategy()
|
Method Summary | |
---|---|
void |
close()
Closes the store. |
protected Object |
getId(Object obj)
|
boolean |
isTransient()
|
Object |
load(String queue,
Object id)
Loads an object specified by the given id. |
void |
open()
Open the store. |
void |
remove(String queue,
Object id)
Removes the object specified by the given id from the store. |
List |
restore()
Retrieves the ids of the stored objects. |
Object |
store(String queue,
Object obj)
Stores an object and returns its generated id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryPersistenceStrategy()
Method Detail |
---|
protected Object getId(Object obj)
public Object store(String queue, Object obj) throws IOException
QueuePersistenceStrategy
store
in interface QueuePersistenceStrategy
obj
- the object to be stored
IOException
public Object load(String queue, Object id) throws IOException
QueuePersistenceStrategy
load
in interface QueuePersistenceStrategy
id
- the id of the stored object
IOException
public void remove(String queue, Object id) throws IOException
QueuePersistenceStrategy
remove
in interface QueuePersistenceStrategy
id
- the id of the stored object
IOException
public List restore() throws IOException
QueuePersistenceStrategy
restore
in interface QueuePersistenceStrategy
IOException
public void open() throws IOException
QueuePersistenceStrategy
open
in interface QueuePersistenceStrategy
IOException
public void close() throws IOException
QueuePersistenceStrategy
close
in interface QueuePersistenceStrategy
IOException
public boolean isTransient()
isTransient
in interface QueuePersistenceStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |