|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.remoting.callback.NullCallbackStore
public class 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(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
public java.lang.Object getNext()
throws java.io.IOException
getNext in interface SerializableStorejava.io.IOException
public void add(java.io.Serializable object)
throws java.io.IOException
add in interface SerializableStoreobject -
java.io.IOExceptionpublic void setConfig(java.util.Map config)
setConfig in interface SerializableStoreconfig -
public void start()
throws java.lang.Exception
start in interface SerializableStorejava.lang.Exceptionpublic void stop()
stop in interface SerializableStore
public void create()
throws java.lang.Exception
create in interface SerializableStorejava.lang.Exceptionpublic void destroy()
destroy in interface SerializableStorepublic void setPurgeOnShutdown(boolean purgeOnShutdown)
setPurgeOnShutdown in interface SerializableStorepurgeOnShutdown - public boolean getPurgeOnShutdown()
getPurgeOnShutdown in interface SerializableStorepublic void purgeFiles()
purgeFiles in interface SerializableStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||