Package org.apache.hc.core5.reactor
Class IOSessionRequest
java.lang.Object
org.apache.hc.core5.reactor.IOSessionRequest
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Object
private final AtomicReference
<ModalCloseable> (package private) final BasicFuture
<IOSession> (package private) final SocketAddress
(package private) final SocketAddress
(package private) final NamedEndpoint
(package private) final Timeout
-
Constructor Summary
ConstructorsConstructorDescriptionIOSessionRequest
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
assign
(ModalCloseable closeable) boolean
cancel()
boolean
cancel
(boolean mayInterruptIfRunning) void
completed
(ProtocolIOSession ioSession) void
get()
boolean
boolean
isDone()
toString()
-
Field Details
-
remoteEndpoint
-
remoteAddress
-
localAddress
-
timeout
-
attachment
-
future
-
closeableRef
-
-
Constructor Details
-
IOSessionRequest
public IOSessionRequest(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback)
-
-
Method Details
-
completed
-
failed
-
cancel
public boolean cancel() -
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<IOSession>
-
assign
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<IOSession>
- Throws:
InterruptedException
ExecutionException
-
get
public IOSession get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<IOSession>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
toString
-