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 TypeMethodDescriptionvoidcancelled(SessionRequest request) Triggered on cancellation of aSessionRequest.voidcompleted(SessionRequest request) Triggered on successful completion of aSessionRequest.voidfailed(SessionRequest request) Triggered on unsuccessful completion aSessionRequest.voidtimeout(SessionRequest request) Triggered if aSessionRequesttimes out.
-
Constructor Details
-
InternalSessionRequestCallback
InternalSessionRequestCallback()
-
-
Method Details
-
completed
Description copied from interface:SessionRequestCallbackTriggered on successful completion of aSessionRequest. TheSessionRequest.getSession()method can now be used to obtain the new I/O session.- Specified by:
completedin interfaceSessionRequestCallback- Parameters:
request- session request.
-
cancelled
Description copied from interface:SessionRequestCallbackTriggered on cancellation of aSessionRequest.- Specified by:
cancelledin interfaceSessionRequestCallback- Parameters:
request- session request.
-
failed
Description copied from interface:SessionRequestCallbackTriggered on unsuccessful completion aSessionRequest. TheSessionRequest.getException()method can now be used to obtain the cause of the error.- Specified by:
failedin interfaceSessionRequestCallback- Parameters:
request- session request.
-
timeout
Description copied from interface:SessionRequestCallbackTriggered if aSessionRequesttimes out.- Specified by:
timeoutin interfaceSessionRequestCallback- Parameters:
request- session request.
-