org.apache.hc.core5.http.nio.command

## Class ExecutableCommand

- java.lang.Object
- - org.apache.hc.core5.http.nio.command.ExecutableCommand

- All Implemented Interfaces:
    Cancellable, Command
  Direct Known Subclasses:
    RequestExecutionCommand

      @Internal
      public abstract class ExecutableCommand
      extends Object
      implements Command

  Abstract executable command that may need to do some cleaning up in case of an failure and also optionally may want to cancel the associated HTTP message exchange through `CancellableDependency`.
  Since:
    5.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.hc.core5.reactor.Command

      `Command.Priority`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExecutableCommand()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `failed(Exception ex)`
    `abstract CancellableDependency` | `getCancellableDependency()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.hc.core5.concurrent.Cancellable

      `cancel`

- - ### Constructor Detail

    - #### ExecutableCommand

          public ExecutableCommand()

  - ### Method Detail

    - #### getCancellableDependency

          public abstract CancellableDependency getCancellableDependency()

    - #### failed

          public abstract void failed(Exception ex)

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.