|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.Object |
getId(java.lang.Object obj)
|
boolean |
isTransient()
|
java.lang.Object |
load(java.lang.String queue,
java.lang.Object id)
Loads an object specified by the given id. |
void |
open()
Open the store. |
void |
remove(java.lang.String queue,
java.lang.Object id)
Removes the object specified by the given id from the store. |
java.util.List |
restore()
Retrieves the ids of the stored objects. |
java.lang.Object |
store(java.lang.String queue,
java.lang.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 java.lang.Object getId(java.lang.Object obj)
public java.lang.Object store(java.lang.String queue, java.lang.Object obj) throws java.io.IOException
QueuePersistenceStrategy
store
in interface QueuePersistenceStrategy
obj
- the object to be stored
java.io.IOException
public java.lang.Object load(java.lang.String queue, java.lang.Object id) throws java.io.IOException
QueuePersistenceStrategy
load
in interface QueuePersistenceStrategy
id
- the id of the stored object
java.io.IOException
public void remove(java.lang.String queue, java.lang.Object id) throws java.io.IOException
QueuePersistenceStrategy
remove
in interface QueuePersistenceStrategy
id
- the id of the stored object
java.io.IOException
public java.util.List restore() throws java.io.IOException
QueuePersistenceStrategy
restore
in interface QueuePersistenceStrategy
java.io.IOException
public void open() throws java.io.IOException
QueuePersistenceStrategy
open
in interface QueuePersistenceStrategy
java.io.IOException
public void close() throws java.io.IOException
QueuePersistenceStrategy
close
in interface QueuePersistenceStrategy
java.io.IOException
public boolean isTransient()
isTransient
in interface QueuePersistenceStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |