|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.NullCallbackStore
This implementation does nothing other than throw away persisted objects and throw exceptions. This is to be use when don't have a proper store or don't care about throwing away callbacks when starting to run out of memory.
Nested Class Summary | |
class |
NullCallbackStore.FailedCallback
|
Constructor Summary | |
NullCallbackStore()
|
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)
No op |
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()
No op |
void |
stop()
No op |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullCallbackStore()
Method Detail |
public int size()
size
in interface SerializableStore
public Object getNext() throws IOException
getNext
in interface SerializableStore
IOException
public void add(Serializable object) throws IOException
add
in interface SerializableStore
object
-
IOException
public void setConfig(Map config)
setConfig
in interface SerializableStore
config
- public void start() throws Exception
start
in interface SerializableStore
Exception
public void stop()
stop
in interface SerializableStore
public void create() throws Exception
create
in interface SerializableStore
Exception
public void destroy()
destroy
in interface SerializableStore
public void setPurgeOnShutdown(boolean purgeOnShutdown)
setPurgeOnShutdown
in interface SerializableStore
purgeOnShutdown
- public boolean getPurgeOnShutdown()
getPurgeOnShutdown
in interface SerializableStore
public void purgeFiles()
purgeFiles
in interface SerializableStore
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |