Package org.apache.http.nio.pool
Class AbstractNIOConnPool.InternalSessionRequestCallback
java.lang.Object
org.apache.http.nio.pool.AbstractNIOConnPool.InternalSessionRequestCallback
- All Implemented Interfaces:
SessionRequestCallback
class AbstractNIOConnPool.InternalSessionRequestCallback
extends Object
implements SessionRequestCallback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelled
(SessionRequest request) Triggered on cancellation of aSessionRequest
.void
completed
(SessionRequest request) Triggered on successful completion of aSessionRequest
.void
failed
(SessionRequest request) Triggered on unsuccessful completion aSessionRequest
.void
timeout
(SessionRequest request) Triggered if aSessionRequest
times out.
-
Constructor Details
-
InternalSessionRequestCallback
InternalSessionRequestCallback()
-
-
Method Details
-
completed
Description copied from interface:SessionRequestCallback
Triggered on successful completion of aSessionRequest
. TheSessionRequest.getSession()
method can now be used to obtain the new I/O session.- Specified by:
completed
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-
cancelled
Description copied from interface:SessionRequestCallback
Triggered on cancellation of aSessionRequest
.- Specified by:
cancelled
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-
failed
Description copied from interface:SessionRequestCallback
Triggered on unsuccessful completion aSessionRequest
. TheSessionRequest.getException()
method can now be used to obtain the cause of the error.- Specified by:
failed
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-
timeout
Description copied from interface:SessionRequestCallback
Triggered if aSessionRequest
times out.- Specified by:
timeout
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-