|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializableStore
Method Summary | |
---|---|
void |
add(java.io.Serializable object)
Persists the serializable object passed to the directory specified. |
void |
create()
This is a no op method, but needed in order to be used as a service within JBoss AS. |
void |
destroy()
This is a no op method, but needed in order to be used as a service within JBoss AS. |
java.lang.Object |
getNext()
Will look through the files in the store directory for the oldest object serialized to disk, load it, delete the file, and return the deserialized object. |
boolean |
getPurgeOnShutdown()
Returns if store will clean up persisted files when shutdown (destroy()). |
void |
purgeFiles()
|
void |
setConfig(java.util.Map config)
Will use the values in the map to set configuration. |
void |
setPurgeOnShutdown(boolean purgeOnShutdown)
Sets if store should clean up persisted files when shutdown (destroy()). |
int |
size()
Getst the number of objects stored and available. |
void |
start()
Will get the file path value (if not already set will just use the default setting) and will create the directory specified by the file path if it does not already exist. |
void |
stop()
This will allow for change of file suffix and file path and then may start again using these new values. |
Method Detail |
---|
int size()
java.lang.Object getNext() throws java.io.IOException
java.io.IOException
void add(java.io.Serializable object) throws java.io.IOException
object
-
java.io.IOException
void setConfig(java.util.Map config)
config
- void start() throws java.lang.Exception
java.lang.Exception
void stop()
void create() throws java.lang.Exception
java.lang.Exception
void destroy()
void setPurgeOnShutdown(boolean purgeOnShutdown)
purgeOnShutdown
- boolean getPurgeOnShutdown()
void purgeFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |