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 java.lang.Object implements SessionRequestCallback
-
-
Constructor Summary
Constructors Constructor Description InternalSessionRequestCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelled(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.
-
-
-
Method Detail
-
completed
public void completed(SessionRequest request)
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
public void cancelled(SessionRequest request)
Description copied from interface:SessionRequestCallbackTriggered on cancellation of aSessionRequest.- Specified by:
cancelledin interfaceSessionRequestCallback- Parameters:
request- session request.
-
failed
public void failed(SessionRequest request)
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
public void timeout(SessionRequest request)
Description copied from interface:SessionRequestCallbackTriggered if aSessionRequesttimes out.- Specified by:
timeoutin interfaceSessionRequestCallback- Parameters:
request- session request.
-
-