|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionRequestCallback
SessionRequestCallback interface can be used to get notifications of completion of session requests asynchronously without having to wait for it, blocking the current thread of execution.
| Method Summary | |
|---|---|
void |
cancelled(SessionRequest request)
Triggered on cancellation of a SessionRequest. |
void |
completed(SessionRequest request)
Triggered on successful completion of a SessionRequest. |
void |
failed(SessionRequest request)
Triggered on unsuccessful completion a SessionRequest. |
void |
timeout(SessionRequest request)
Triggered if a SessionRequest times out. |
| Method Detail |
|---|
void completed(SessionRequest request)
SessionRequest.
The SessionRequest.getSession() method can now be used to obtain
the new I/O session.
request - session request.void failed(SessionRequest request)
SessionRequest.
The SessionRequest.getException() method can now be used to
obtain the cause of the error.
request - session request.void timeout(SessionRequest request)
SessionRequest times out.
request - session request.void cancelled(SessionRequest request)
SessionRequest.
request - session request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||