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
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
FieldsModifier and TypeFieldDescriptionprivate final CancellableDependency
private final HttpContext
private final AsyncClientExchangeHandler
private final AtomicBoolean
private final HandlerFactory
<AsyncPushConsumer> -
Constructor Summary
ConstructorsConstructorDescriptionRequestExecutionCommand
(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context) RequestExecutionCommand
(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context) RequestExecutionCommand
(AsyncClientExchangeHandler exchangeHandler, HttpContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancels the ongoing operation or process.void
-
Field Details
-
exchangeHandler
-
pushHandlerFactory
-
cancellableDependency
-
context
-
failed
-
-
Constructor Details
-
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context) -
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context) -
RequestExecutionCommand
-
-
Method Details
-
getExchangeHandler
-
getPushHandlerFactory
-
getCancellableDependency
- Specified by:
getCancellableDependency
in classExecutableCommand
-
getContext
-
failed
- 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.
-