Class PushResponseCommand

java.lang.Object
org.apache.hc.core5.http2.nio.command.PushResponseCommand
All Implemented Interfaces:
Cancellable, Command

@Internal public final class PushResponseCommand extends Object implements Command
Activates the stream reserved with a push promise
Since:
5.4
  • Field Details

    • streamId

      private final int streamId
    • cancelled

      private final AtomicBoolean cancelled
  • Constructor Details

    • PushResponseCommand

      public PushResponseCommand(int streamId)
  • Method Details

    • getStreamId

      public int getStreamId()
    • isCancelled

      public boolean isCancelled()
    • cancel

      public boolean cancel()
      Description copied from interface: Cancellable
      Cancels the ongoing operation or process.
      Specified by:
      cancel in interface Cancellable
      Returns:
      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.