Class GoAway

java.lang.Object
io.vertx.core.http.GoAway

public class GoAway extends Object
A GOAWAY frame.
Author:
Julien Viet
  • Constructor Details

    • GoAway

      public GoAway()
    • GoAway

      public GoAway(JsonObject json)
    • GoAway

      public GoAway(GoAway that)
  • Method Details

    • getErrorCode

      public long getErrorCode()
      Returns:
      the GOAWAY error code
    • setErrorCode

      public GoAway setErrorCode(long errorCode)
    • getLastStreamId

      public int getLastStreamId()
      Returns:
      the highest numbered stream identifier for which the sender of the frame might have taken some action on or might yet take action
    • setLastStreamId

      public GoAway setLastStreamId(int lastStreamId)
      Set the last stream id.
      Parameters:
      lastStreamId - the last stream id
      Returns:
      a reference to this, so the API can be used fluently
    • getDebugData

      public Buffer getDebugData()
      Returns:
      additional debug data
    • setDebugData

      public GoAway setDebugData(Buffer debugData)
      Set the additional debug data
      Parameters:
      debugData - the data
      Returns:
      a reference to this, so the API can be used fluently
    • toJson

      public JsonObject toJson()