|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
add(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. |
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(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 |
public int size()
public Object getNext() throws IOException
IOException
public void add(Serializable object) throws IOException
object
-
IOException
public void setConfig(Map config)
config
- public void start() throws Exception
Exception
public void stop()
public void create() throws Exception
Exception
public void destroy()
public void setPurgeOnShutdown(boolean purgeOnShutdown)
purgeOnShutdown
- public boolean getPurgeOnShutdown()
public void purgeFiles()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |