|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.callback.ServerInvokerCallbackHandler
Responsible for all callbacks in remoting at invoker level (on the server side). This is created within the ServerInvoker and passed to the server handler as a proxy for the client's callback handler.
Will determin internally if is using pull or push mechanism for delivering callbacks. If is push, will create a Client to call back on the callback server.
Field Summary | |
static java.lang.String |
CALLBACK_ERROR_HANDLER_KEY
The map key to use when looking up any callback error handler that should be used. |
static java.lang.String |
CALLBACK_MEM_CEILING
The map key to use when looking up the percentage of free memory available before tiggering persistence. |
static java.lang.String |
CALLBACK_STORE_KEY
The map key to use when looking up any callback store that should be used. |
Constructor Summary | |
ServerInvokerCallbackHandler(InvocationRequest invocation,
InvokerLocator serverLocator,
ServerInvoker owner)
|
Method Summary | |
void |
destroy()
This method is required to be called upon removing a callback listener so can clean up resources used by the handler. |
Client |
getCallbackClient()
|
java.util.List |
getCallbacks()
|
java.lang.String |
getCallbackSessionId()
|
java.lang.String |
getClientSessionId()
|
java.lang.String |
getId()
Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to. |
static java.lang.String |
getId(InvocationRequest invocation)
Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to. |
java.lang.Double |
getMemPercentCeiling()
|
java.lang.String |
getSubsystem()
|
void |
handleCallback(Callback callback)
Will take the callback message and send back to client. |
boolean |
isPullCallbackHandler()
|
void |
setMemPercentCeiling(java.lang.Double ceiling)
|
java.lang.String |
toString()
Returns the id for this handler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CALLBACK_STORE_KEY
public static final java.lang.String CALLBACK_ERROR_HANDLER_KEY
public static final java.lang.String CALLBACK_MEM_CEILING
Constructor Detail |
public ServerInvokerCallbackHandler(InvocationRequest invocation, InvokerLocator serverLocator, ServerInvoker owner) throws java.lang.Exception
Method Detail |
public java.lang.String getCallbackSessionId()
public java.lang.String getClientSessionId()
public java.lang.String getSubsystem()
public void setMemPercentCeiling(java.lang.Double ceiling)
public java.lang.Double getMemPercentCeiling()
public Client getCallbackClient()
public static java.lang.String getId(InvocationRequest invocation)
public java.lang.String getId()
public java.util.List getCallbacks()
public boolean isPullCallbackHandler()
public void handleCallback(Callback callback) throws HandleCallbackException
handleCallback
in interface InvokerCallbackHandler
callback
-
HandleCallbackException
public java.lang.String toString()
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |