public class MemoryPersistenceStrategy extends Object implements QueuePersistenceStrategy
QueuePersistenceStrategy.Holder| Constructor and Description |
|---|
MemoryPersistenceStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Object store(String queue, Object obj) throws IOException
QueuePersistenceStrategystore in interface QueuePersistenceStrategyobj - the object to be storedIOExceptionpublic Object load(String queue, Object id) throws IOException
QueuePersistenceStrategyload in interface QueuePersistenceStrategyid - the id of the stored objectIOExceptionpublic void remove(String queue, Object id) throws IOException
QueuePersistenceStrategyremove in interface QueuePersistenceStrategyid - the id of the stored objectIOExceptionpublic List restore() throws IOException
QueuePersistenceStrategyrestore in interface QueuePersistenceStrategyIOExceptionpublic void open()
throws IOException
QueuePersistenceStrategyopen in interface QueuePersistenceStrategyIOExceptionpublic void close()
throws IOException
QueuePersistenceStrategyclose in interface QueuePersistenceStrategyIOExceptionpublic boolean isTransient()
isTransient in interface QueuePersistenceStrategyCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.