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

## Class CommandSupport

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

-     @Internal
      public final class CommandSupport
      extends Object

  `Command` utility methods.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommandSupport()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `cancelCommands(IOSession ioSession)` Cancels all pending session `Command`s.
    `static void` | `failCommands(IOSession ioSession, Exception ex)` Fails all pending session `Command`s.

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

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

- - ### Constructor Detail

    - #### CommandSupport

          public CommandSupport()

  - ### Method Detail

    - #### failCommands

          public static void failCommands(IOSession ioSession,
                                          Exception ex)

      Fails all pending session `Command`s.

    - #### cancelCommands

          public static void cancelCommands(IOSession ioSession)

      Cancels all pending session `Command`s.

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