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 Command
Command.Priority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CancellableDependencyprivate final HttpContextprivate final AsyncClientExchangeHandlerprivate final AtomicBooleanprivate final Callback<StreamControl> private final HandlerFactory<AsyncPushConsumer> -
Constructor Summary
ConstructorsConstructorDescriptionRequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context) Deprecated.Not used.RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context) RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context, Callback<StreamControl> initiationCallback) RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HttpContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Cancels the ongoing operation or process.voidDeprecated.no used.voidinitiated(StreamControl streamControl)
-
Field Details
-
exchangeHandler
-
pushHandlerFactory
-
cancellableDependency
-
context
-
initiationCallback
-
failed
-
-
Constructor Details
-
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context, Callback<StreamControl> initiationCallback) - Since:
- 5.5
-
RequestExecutionCommand
@Deprecated public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, HttpContext context) Deprecated.Not used. -
RequestExecutionCommand
public RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context) -
RequestExecutionCommand
-
-
Method Details
-
getExchangeHandler
-
getPushHandlerFactory
-
getCancellableDependency
Deprecated.no used.- Specified by:
getCancellableDependencyin classExecutableCommand
-
getContext
-
initiated
- Since:
- 5.5
-
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.
-