public class SynInfo extends Info
A container for SYN_STREAM frames metadata and data.
Modifier and Type | Field and Description |
---|---|
static byte |
FLAG_CLOSE
Flag that indicates that this
SynInfo is the last frame in the stream. |
Constructor and Description |
---|
SynInfo(Fields headers,
boolean close)
Creates a
SynInfo instance with the given headers and the given close flag,
not unidirectional, without associated stream, and with default priority. |
SynInfo(Fields headers,
boolean close,
byte priority)
Creates a
SynInfo instance with the given headers, the given close flag and with the given priority. |
SynInfo(long timeout,
TimeUnit unit,
Fields headers,
boolean close,
byte priority)
Creates a
SynInfo instance with the given headers, the given close flag and with the given priority. |
Modifier and Type | Method and Description |
---|---|
byte |
getFlags() |
Fields |
getHeaders() |
byte |
getPriority() |
boolean |
isClose() |
String |
toString() |
getTimeout, getUnit
public static final byte FLAG_CLOSE
Flag that indicates that this SynInfo
is the last frame in the stream.
isClose()
,
getFlags()
,
Constant Field Valuespublic SynInfo(Fields headers, boolean close)
Creates a SynInfo
instance with the given headers and the given close flag,
not unidirectional, without associated stream, and with default priority.
headers
- the Fields
close
- the value of the close flagpublic SynInfo(Fields headers, boolean close, byte priority)
Creates a SynInfo
instance with the given headers, the given close flag and with the given priority.
headers
- the Fields
close
- the value of the close flagpriority
- public SynInfo(long timeout, TimeUnit unit, Fields headers, boolean close, byte priority)
Creates a SynInfo
instance with the given headers, the given close flag and with the given priority.
timeout
- the timeout valueunit
- the TimeUnit of the timeoutheaders
- the Fields
close
- the value of the close flagpriority
- public boolean isClose()
public byte getPriority()
public byte getFlags()
FLAG_CLOSE
Copyright © 1995-2015 Webtide. All Rights Reserved.