Class IOSessionRequest
java.lang.Object
org.apache.hc.core5.reactor.IOSessionRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Objectprivate final AtomicReference<ModalCloseable> private final long(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 TypeMethodDescriptionvoidassign(ModalCloseable closeable) booleancancel()booleancancel(boolean mayInterruptIfRunning) voidcompleted(ProtocolIOSession ioSession) voidget()longbooleanbooleanisDone()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
remoteEndpoint
-
remoteAddress
-
localAddress
-
timeout
-
attachment
-
future
-
enqueueTime
private final long enqueueTime -
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
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<IOSession>
-
assign
-
isDone
-
get
- Specified by:
getin interfaceFuture<IOSession>- Throws:
InterruptedExceptionExecutionException
-
get
public IOSession get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<IOSession>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
toString
-
getEnqueueTime
-