Package org.eclipse.jetty.http2.frames
Class PingFrame
- java.lang.Object
-
- org.eclipse.jetty.http2.frames.Frame
-
- org.eclipse.jetty.http2.frames.PingFrame
-
public class PingFrame extends Frame
-
-
Field Summary
Fields Modifier and Type Field Description static int
PING_LENGTH
-
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description PingFrame(boolean reply)
Creates a PING frame with an empty payload.PingFrame(byte[] payload, boolean reply)
Creates a PING frame with the givenpayload
.PingFrame(long value, boolean reply)
Creates a PING frame with the givenlong
value
as payload.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getPayload()
long
getPayloadAsLong()
boolean
isReply()
-
-
-
Field Detail
-
PING_LENGTH
public static final int PING_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PingFrame
public PingFrame(boolean reply)
Creates a PING frame with an empty payload.- Parameters:
reply
- whether this PING frame is a reply
-
PingFrame
public PingFrame(long value, boolean reply)
Creates a PING frame with the givenlong
value
as payload.- Parameters:
value
- the value to use as a payload for this PING framereply
- whether this PING frame is a reply
-
PingFrame
public PingFrame(byte[] payload, boolean reply)
Creates a PING frame with the givenpayload
.- Parameters:
payload
- the payload for this PING framereply
- whether this PING frame is a reply
-
-