Class ConnectionCloseFrame

java.lang.Object
org.eclipse.jetty.quic.api.frames.Frame
org.eclipse.jetty.quic.api.frames.ConnectionCloseFrame

public class ConnectionCloseFrame extends Frame
  • Constructor Details

    • ConnectionCloseFrame

      public ConnectionCloseFrame(long appErrorCode, String reason)

      Creates a connection close frame with the given application error code and reason.

      Applications should use this constructor in conjunction with Session.close(ConnectionCloseFrame, org.eclipse.jetty.util.Promise.Invocable).

      Parameters:
      appErrorCode - the application error code
      reason - the application error reason
    • ConnectionCloseFrame

      public ConnectionCloseFrame(long quicErrorCode, String reason, long causeFrameType)

      Creates a connection close frame with the given QUIC error code, reason, and frame type.

      Applications should not use this constructor.

      Parameters:
      quicErrorCode - the QUIC error code
      reason - the QUIC error reason
      causeFrameType - the frame type that caused the error
  • Method Details

    • getErrorCode

      public long getErrorCode()
    • getReason

      public String getReason()
    • getCauseFrameType

      public long getCauseFrameType()
    • toString

      public String toString()
      Overrides:
      toString in class Frame