|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 (src)
|
Constructor Summary | |
NullCallbackStore()
|
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)
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 (src)
public java.lang.Object getNext() throws java.io.IOException
getNext
in interface SerializableStore (src)
java.io.IOException
public void add(java.io.Serializable object) throws java.io.IOException
add
in interface SerializableStore (src)
object
-
java.io.IOException
public void setConfig(java.util.Map config)
setConfig
in interface SerializableStore (src)
config
- public void start() throws java.lang.Exception
start
in interface SerializableStore (src)
java.lang.Exception
public void stop()
stop
in interface SerializableStore (src)
public void create() throws java.lang.Exception
create
in interface SerializableStore (src)
java.lang.Exception
public void destroy()
destroy
in interface SerializableStore (src)
public void setPurgeOnShutdown(boolean purgeOnShutdown)
setPurgeOnShutdown
in interface SerializableStore (src)
purgeOnShutdown
- public boolean getPurgeOnShutdown()
getPurgeOnShutdown
in interface SerializableStore (src)
public void purgeFiles()
purgeFiles
in interface SerializableStore (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |