Package org.apache.hc.core5.reactor
Class IOSessionRequest
java.lang.Object
org.apache.hc.core5.reactor.IOSessionRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Objectprivate 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 TypeMethodDescriptionvoidassign(ModalCloseable closeable) booleancancel()booleancancel(boolean mayInterruptIfRunning) voidcompleted(ProtocolIOSession ioSession) voidget()booleanbooleanisDone()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
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:
isCancelledin interfaceFuture<IOSession>
-
assign
-
isDone
public boolean 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
-