Class PushResponseCommand

  • All Implemented Interfaces:
    Cancellable, Command

    @Internal
    public final class PushResponseCommand
    extends java.lang.Object
    implements Command
    Activates the stream reserved with a push promise
    Since:
    5.4
    • Nested Class Summary

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicBoolean cancelled  
      private int streamId  
    • Constructor Summary

      Constructors 
      Constructor Description
      PushResponseCommand​(int streamId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel()
      Cancels the ongoing operation or process.
      int getStreamId()  
      boolean isCancelled()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • streamId

        private final int streamId
      • cancelled

        private final java.util.concurrent.atomic.AtomicBoolean cancelled
    • Constructor Detail

      • PushResponseCommand

        public PushResponseCommand​(int streamId)
    • Method Detail

      • 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.