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 CancellableDependencyprivate final HttpContextprivate final AsyncClientExchangeHandlerprivate final AtomicBooleanprivate 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 TypeMethodDescriptionbooleancancel()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:
getCancellableDependencyin classExecutableCommand
-
getContext
-
failed
- Specified by:
failedin classExecutableCommand
-
cancel
public boolean cancel()Description copied from interface:CancellableCancels the ongoing operation or process.- Returns:
trueif the operation or process has been cancelled as a result of this method call orfalseif it has already been cancelled or not started.
-