|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueuePersistenceStrategy
QueuePersistenceStrategy
defines the The api to a persistent queue
store. A persistence strategy can be transient (in memory or non-restorable) or
non-transient such as File system or DB.
Nested Class Summary | |
---|---|
static interface |
QueuePersistenceStrategy.Holder
|
Method Summary | |
---|---|
void |
close()
Closes the store. |
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. |
Method Detail |
---|
Object store(String queue, Object obj) throws IOException
obj
- the object to be stored
IOException
Object load(String queue, Object id) throws IOException
id
- the id of the stored object
IOException
void remove(String queue, Object id) throws IOException
id
- the id of the stored object
IOException
List restore() throws IOException
IOException
void open() throws IOException
IOException
void close() throws IOException
IOException
boolean isTransient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |