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 void
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.
-
-
-
Method Detail
-
completed
public void completed(SessionRequest request)
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
public void cancelled(SessionRequest request)
Description copied from interface:SessionRequestCallback
Triggered on cancellation of aSessionRequest
.- Specified by:
cancelled
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-
failed
public void failed(SessionRequest request)
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
public void timeout(SessionRequest request)
Description copied from interface:SessionRequestCallback
Triggered if aSessionRequest
times out.- Specified by:
timeout
in interfaceSessionRequestCallback
- Parameters:
request
- session request.
-
-