Class RequestExecutionCommand
- java.lang.Object
-
- org.apache.hc.core5.http.nio.command.ExecutableCommand
-
- org.apache.hc.core5.http.nio.command.RequestExecutionCommand
-
- All Implemented Interfaces:
Cancellable
,Command
@Internal public final class RequestExecutionCommand extends ExecutableCommand
Request execution command.- Since:
- 5.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.hc.core5.reactor.Command
Command.Priority
-
-
Field Summary
Fields Modifier and Type Field Description private CancellableDependency
cancellableDependency
private HttpContext
context
private AsyncClientExchangeHandler
exchangeHandler
private java.util.concurrent.atomic.AtomicBoolean
failed
private HandlerFactory<AsyncPushConsumer>
pushHandlerFactory
-
Constructor Summary
Constructors Constructor Description RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context)
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context)
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HttpContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel()
Cancels the ongoing operation or process.void
failed(java.lang.Exception ex)
CancellableDependency
getCancellableDependency()
HttpContext
getContext()
AsyncClientExchangeHandler
getExchangeHandler()
HandlerFactory<AsyncPushConsumer>
getPushHandlerFactory()
-
-
-
Field Detail
-
exchangeHandler
private final AsyncClientExchangeHandler exchangeHandler
-
pushHandlerFactory
private final HandlerFactory<AsyncPushConsumer> pushHandlerFactory
-
cancellableDependency
private final CancellableDependency cancellableDependency
-
context
private final HttpContext context
-
failed
private final java.util.concurrent.atomic.AtomicBoolean failed
-
-
Constructor Detail
-
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context)
-
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context)
-
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HttpContext context)
-
-
Method Detail
-
getExchangeHandler
public AsyncClientExchangeHandler getExchangeHandler()
-
getPushHandlerFactory
public HandlerFactory<AsyncPushConsumer> getPushHandlerFactory()
-
getCancellableDependency
public CancellableDependency getCancellableDependency()
- Specified by:
getCancellableDependency
in classExecutableCommand
-
getContext
public HttpContext getContext()
-
failed
public void failed(java.lang.Exception ex)
- Specified by:
failed
in classExecutableCommand
-
cancel
public boolean cancel()
Description copied from interface:Cancellable
Cancels the ongoing operation or process.- Returns:
true
if the operation or process has been cancelled as a result of this method call orfalse
if it has already been cancelled or not started.
-
-