public interface

SessionRequestCallback

org.apache.http.nio.reactor.SessionRequestCallback

Class Overview

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.

Summary

Public Methods
abstract void cancelled(SessionRequest request)
Triggered on cancellation of a SessionRequest.
abstract void completed(SessionRequest request)
Triggered on successful completion of a SessionRequest.
abstract void failed(SessionRequest request)
Triggered on unsuccessful completion a SessionRequest.
abstract void timeout(SessionRequest request)
Triggered if a SessionRequest times out.

Public Methods

public abstract void cancelled (SessionRequest request)

Triggered on cancellation of a SessionRequest.

Parameters
request session request.

public abstract void completed (SessionRequest request)

Triggered on successful completion of a SessionRequest. The getSession() method can now be used to obtain the new I/O session.

Parameters
request session request.

public abstract void failed (SessionRequest request)

Triggered on unsuccessful completion a SessionRequest. The getException() method can now be used to obtain the cause of the error.

Parameters
request session request.

public abstract void timeout (SessionRequest request)

Triggered if a SessionRequest times out.

Parameters
request session request.