Package org.apache.catalina.tribes
Interface ErrorHandler
- 
 public interface ErrorHandlerTheErrorHandlerclass is used when sending messages that are sent asynchronously and the application still needs to get confirmation when the message was sent successfully or when a message errored out.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleCompletion(UniqueId id)Invoked when the message has been sent successfully.voidhandleError(ChannelException x, UniqueId id)Invoked if the message is dispatched async, and an error occurs
 
- 
- 
- 
Method Detail- 
handleErrorvoid handleError(ChannelException x, UniqueId id) Invoked if the message is dispatched async, and an error occurs- Parameters:
- x- ChannelException - the error that happened
- id- - the unique id for the message
- See Also:
- Channel.send(Member[], java.io.Serializable, int, ErrorHandler)
 
 - 
handleCompletionvoid handleCompletion(UniqueId id) Invoked when the message has been sent successfully.- Parameters:
- id- - the unique id for the message
- See Also:
- Channel.send(Member[], java.io.Serializable, int, ErrorHandler)
 
 
- 
 
-