|
||||||||||
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()
|
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. |
Method Detail |
---|
java.lang.Object store(java.lang.String queue, java.lang.Object obj) throws java.io.IOException
obj
- the object to be stored
java.io.IOException
java.lang.Object load(java.lang.String queue, java.lang.Object id) throws java.io.IOException
id
- the id of the stored object
java.io.IOException
void remove(java.lang.String queue, java.lang.Object id) throws java.io.IOException
id
- the id of the stored object
java.io.IOException
java.util.List restore() throws java.io.IOException
java.io.IOException
void open() throws java.io.IOException
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
boolean isTransient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |