public class SetupFrameCodec extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_VERSION |
static int |
FLAGS_RESUME_ENABLE
A flag used to indicate that the client requires connection resumption, if possible (the frame
contains a Resume Identification Token)
|
static int |
FLAGS_WILL_HONOR_LEASE
A flag used to indicate that the client will honor LEASE sent by the server
|
Constructor and Description |
---|
SetupFrameCodec() |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
data(ByteBuf byteBuf) |
static String |
dataMimeType(ByteBuf byteBuf) |
static ByteBuf |
encode(ByteBufAllocator allocator,
boolean lease,
int keepaliveInterval,
int maxLifetime,
ByteBuf resumeToken,
String metadataMimeType,
String dataMimeType,
Payload setupPayload) |
static ByteBuf |
encode(ByteBufAllocator allocator,
boolean lease,
int keepaliveInterval,
int maxLifetime,
String metadataMimeType,
String dataMimeType,
Payload setupPayload) |
static boolean |
honorLease(ByteBuf byteBuf) |
static String |
humanReadableVersion(ByteBuf byteBuf) |
static boolean |
isSupportedVersion(ByteBuf byteBuf) |
static int |
keepAliveInterval(ByteBuf byteBuf) |
static int |
keepAliveMaxLifetime(ByteBuf byteBuf) |
static ByteBuf |
metadata(ByteBuf byteBuf) |
static String |
metadataMimeType(ByteBuf byteBuf) |
static boolean |
resumeEnabled(ByteBuf byteBuf) |
static ByteBuf |
resumeToken(ByteBuf byteBuf) |
static int |
resumeTokenLength(ByteBuf byteBuf) |
static int |
version(ByteBuf byteBuf) |
public static final int FLAGS_RESUME_ENABLE
public static final int FLAGS_WILL_HONOR_LEASE
public static final int CURRENT_VERSION
public static ByteBuf encode(ByteBufAllocator allocator, boolean lease, int keepaliveInterval, int maxLifetime, String metadataMimeType, String dataMimeType, Payload setupPayload)
public static ByteBuf encode(ByteBufAllocator allocator, boolean lease, int keepaliveInterval, int maxLifetime, ByteBuf resumeToken, String metadataMimeType, String dataMimeType, Payload setupPayload)
public static int version(ByteBuf byteBuf)
public static boolean isSupportedVersion(ByteBuf byteBuf)
public static int resumeTokenLength(ByteBuf byteBuf)
public static int keepAliveInterval(ByteBuf byteBuf)
public static int keepAliveMaxLifetime(ByteBuf byteBuf)
public static boolean honorLease(ByteBuf byteBuf)
public static boolean resumeEnabled(ByteBuf byteBuf)