Top Description Fields Constructors Methods
org.apache.hc.core5.http.nio.command

public final Class RequestExecutionCommand

extends ExecutableCommand
Class Inheritance
Annotations
@Internal
Imports
java.util.concurrent.atomic.AtomicBoolean, org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.http.RequestNotExecutedException, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler, .AsyncPushConsumer, .HandlerFactory, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args

Request execution command.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final CancellableDependency
private final HttpContext
private final AsyncClientExchangeHandler
private final AtomicBoolean
private final HandlerFactory<AsyncPushConsumer>

Constructor Summary

AccessConstructor and Description
public
RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final CancellableDependency cancellableDependency, final HttpContext context)

public
RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final HttpContext context)

public
RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HttpContext context)

Method Summary

Modifier and TypeMethod and Description
public boolean
cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Cancels the ongoing operation or process.
public void
public CancellableDependency
public HttpContext
public AsyncClientExchangeHandler
public HandlerFactory<AsyncPushConsumer>

Field Detail

cancellableDependencyback to summary
private final CancellableDependency cancellableDependency
contextback to summary
private final HttpContext context
exchangeHandlerback to summary
private final AsyncClientExchangeHandler exchangeHandler
failedback to summary
private final AtomicBoolean failed
pushHandlerFactoryback to summary
private final HandlerFactory<AsyncPushConsumer> pushHandlerFactory

Constructor Detail

RequestExecutionCommandback to summary
public RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final CancellableDependency cancellableDependency, final HttpContext context)
RequestExecutionCommandback to summary
public RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final HttpContext context)
RequestExecutionCommandback to summary
public RequestExecutionCommand(final AsyncClientExchangeHandler exchangeHandler, final HttpContext context)

Method Detail

cancelback to summary
public boolean cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Doc from org.apache.hc.core5.concurrent.Cancellable.cancel.

Cancels the ongoing operation or process.

Returns:boolean

true if the operation or process has been cancelled as a result of this method call or false if it has already been cancelled or not started.

Annotations
@Override
failedback to summary
public void failed(final Exception ex)

Implements abstract org.apache.hc.core5.http.nio.command.ExecutableCommand.failed.

Annotations
@Override
getCancellableDependencyback to summary
public CancellableDependency getCancellableDependency()

Implements abstract org.apache.hc.core5.http.nio.command.ExecutableCommand.getCancellableDependency.

Annotations
@Override
getContextback to summary
public HttpContext getContext()
getExchangeHandlerback to summary
public AsyncClientExchangeHandler getExchangeHandler()
getPushHandlerFactoryback to summary
public HandlerFactory<AsyncPushConsumer> getPushHandlerFactory()