|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MsgCallback
Interface for specifying how to handle the responses of asynchronous messages. Contains separate handlers for successful responses, timeouts, explicit errors, or other IO errors.
| Method Summary | |
|---|---|
void |
handleException(IOException e)
Handle any IO exception encountered while sending the query message. |
void |
handlePeerError(PeerErrorException e)
Handle an error message response. |
void |
handlePeerTimeout(PeerTimeoutException e)
Handle a message response timeout. |
void |
handleResponse(Msg msg)
Handle the given response message. |
| Method Detail |
|---|
void handleResponse(Msg msg)
msg - The response message.void handlePeerTimeout(PeerTimeoutException e)
e - The timeout exception thrown.void handlePeerError(PeerErrorException e)
e - The error exception thrown.void handleException(IOException e)
handlePeerError(PeerErrorException) and
handlePeerTimeout(PeerTimeoutException) if those methods are not
overridden.
e - The exception that occurred.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||