Top Fields Constructors Methods
org.eclipse.jetty.http2.frames

public Class PingFrame

extends Frame
Class Inheritance
Imports
java.util.Objects

Field Summary

Modifier and TypeField and Description
private static final byte[]
private final byte[]
public static final int
private final boolean
Inherited from org.eclipse.jetty.http2.frames.Frame:
DEFAULT_MAX_SIZEEMPTY_ARRAYHEADER_LENGTHMAX_MAX_SIZE

Constructor Summary

AccessConstructor and Description
public
PingFrame(boolean
whether this PING frame is a reply
reply
)

Creates a PING frame with an empty payload.

public
PingFrame(long
the value to use as a payload for this PING frame
value
,
boolean
whether this PING frame is a reply
reply
)

Creates a PING frame with the given long value as payload.

public
PingFrame(byte[]
the payload for this PING frame
payload
,
boolean
whether this PING frame is a reply
reply
)

Creates a PING frame with the given payload.

Method Summary

Modifier and TypeMethod and Description
public byte[]
public long
public boolean
private static byte[]
toBytes(long value)

private static long
toLong(byte[] payload)

Inherited from org.eclipse.jetty.http2.frames.Frame:
getTypetoString

Field Detail

EMPTY_PAYLOADback to summary
private static final byte[] EMPTY_PAYLOAD
payloadback to summary
private final byte[] payload
PING_LENGTHback to summary
public static final int PING_LENGTH
replyback to summary
private final boolean reply

Constructor Detail

PingFrameback to summary
public PingFrame(boolean reply)

Creates a PING frame with an empty payload.

Parameters
reply:boolean

whether this PING frame is a reply

PingFrameback to summary
public PingFrame(long value, boolean reply)

Creates a PING frame with the given long value as payload.

Parameters
value:long

the value to use as a payload for this PING frame

reply:boolean

whether this PING frame is a reply

PingFrameback to summary
public PingFrame(byte[] payload, boolean reply)

Creates a PING frame with the given payload.

Parameters
payload:byte[]

the payload for this PING frame

reply:boolean

whether this PING frame is a reply

Method Detail

getPayloadback to summary
public byte[] getPayload()
getPayloadAsLongback to summary
public long getPayloadAsLong()
isReplyback to summary
public boolean isReply()
toBytesback to summary
private static byte[] toBytes(long value)
toLongback to summary
private static long toLong(byte[] payload)