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 CancellableDependencycancellableDependencyprivate HttpContextcontextprivate AsyncClientExchangeHandlerexchangeHandlerprivate java.util.concurrent.atomic.AtomicBooleanfailedprivate 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 booleancancel()Cancels the ongoing operation or process.voidfailed(java.lang.Exception ex)CancellableDependencygetCancellableDependency()HttpContextgetContext()AsyncClientExchangeHandlergetExchangeHandler()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:
getCancellableDependencyin classExecutableCommand
-
getContext
public HttpContext getContext()
-
failed
public void failed(java.lang.Exception ex)
- 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.
-
-