|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.callback.BlockingCallbackStore
public class BlockingCallbackStore
This callback store does not persist callback messages when memory is running low, but instead will block the thread making the handle callback call from the server invoker. The intention is that this will throttle the server invoker from generating/sending any more callbacks until client as called to get the in-memory callbacks that have already been collected and memory has been released.
Constructor Summary | |
---|---|
BlockingCallbackStore()
|
Method Summary | |
---|---|
void |
add(java.io.Serializable object)
To be used for adding a callback to the store. |
void |
create()
No op |
void |
destroy()
No op |
java.lang.Object |
getNext()
Will get the first callback that are being held for the client. |
boolean |
getPurgeOnShutdown()
No op. |
void |
purgeFiles()
No op. |
void |
setConfig(java.util.Map config)
No op |
void |
setPurgeOnShutdown(boolean purgeOnShutdown)
No op |
int |
size()
Gets the number of callbacks that are waiting to be processed. |
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 BlockingCallbackStore()
Method Detail |
---|
public int size()
size
in interface SerializableStore
public java.lang.Object getNext() throws java.io.IOException
getNext
in interface SerializableStore
java.io.IOException
public void add(java.io.Serializable object) throws java.io.IOException
add
in interface SerializableStore
object
-
java.io.IOException
public void setConfig(java.util.Map config)
setConfig
in interface SerializableStore
config
- public void start() throws java.lang.Exception
start
in interface SerializableStore
java.lang.Exception
public void stop()
stop
in interface SerializableStore
public void create() throws java.lang.Exception
create
in interface SerializableStore
java.lang.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 |