FileDocCategorySizeDatePackage
ErrorHandler.javaAPI DocApache Tomcat 6.0.141778Fri Jul 20 04:20:34 BST 2007org.apache.catalina.tribes

ErrorHandler

public interface ErrorHandler
The ErrorHandler class 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.
author
Filip Hanik
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public voidhandleCompletion(UniqueId id)
Invoked when the message has been sent successfully.

param
id - the unique id for the message
see
Channel#send(Member[], Serializable, int, ErrorHandler)

public voidhandleError(ChannelException x, UniqueId id)
Invoked if the message is dispatched asynch, and an error occurs

param
x ChannelException - the error that happened
param
id - the unique id for the message
see
Channel#send(Member[], Serializable, int, ErrorHandler)