org.jboss.remoting.callback
Class DefaultCallbackErrorHandler
java.lang.Object
org.jboss.remoting.callback.DefaultCallbackErrorHandler
- All Implemented Interfaces:
- CallbackErrorHandler
- public class DefaultCallbackErrorHandler
- extends java.lang.Object
- implements CallbackErrorHandler
Default callback error handler if one not specified. This class
will listen for exceptions that occur when trying to deliver callback
message to a callback listener from the server. By default, after the fifth
exception, it will remove that callback listener from the server invoker handler.
To set the number of exceptions it will allow before this happens, can set the
'callbackErrorsAllowed' attribute within the invoker configuration.
- Author:
- Tom Elrod
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALLBACK_ERRORS_ALLOWED
public static final java.lang.String CALLBACK_ERRORS_ALLOWED
- See Also:
- Constant Field Values
DefaultCallbackErrorHandler
public DefaultCallbackErrorHandler()
setConfig
public void setConfig(java.util.Map errorHandlerConfig)
- Sets the configuration for the error handler.
This will be called per instance creation on the
server side.
- Specified by:
setConfig
in interface CallbackErrorHandler
- Parameters:
errorHandlerConfig
-
handleError
public void handleError(java.lang.Throwable ex)
throws java.lang.Throwable
- Specified by:
handleError
in interface CallbackErrorHandler
- Throws:
java.lang.Throwable
setServerInvoker
public void setServerInvoker(ServerInvoker owner)
- Specified by:
setServerInvoker
in interface CallbackErrorHandler
setCallbackHandler
public void setCallbackHandler(ServerInvokerCallbackHandler serverInvokerCallbackHandler)
- Specified by:
setCallbackHandler
in interface CallbackErrorHandler
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.