public class SetupFrameFlyweight 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
|
static int |
VALID_FLAGS |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeFrameLength(int flags,
String metadataMimeType,
String dataMimeType,
int metadataLength,
int dataLength) |
static String |
dataMimeType(ByteBuf byteBuf) |
static int |
encode(ByteBuf byteBuf,
int flags,
int keepaliveInterval,
int maxLifetime,
String metadataMimeType,
String dataMimeType,
ByteBuf metadata,
ByteBuf data) |
static int |
keepaliveInterval(ByteBuf byteBuf) |
static int |
maxLifetime(ByteBuf byteBuf) |
static String |
metadataMimeType(ByteBuf byteBuf) |
static int |
payloadOffset(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 VALID_FLAGS
public static final int CURRENT_VERSION
public static int computeFrameLength(int flags,
String metadataMimeType,
String dataMimeType,
int metadataLength,
int dataLength)
public static int encode(ByteBuf byteBuf, int flags, int keepaliveInterval, int maxLifetime, String metadataMimeType, String dataMimeType, ByteBuf metadata, ByteBuf data)
public static int version(ByteBuf byteBuf)
public static int keepaliveInterval(ByteBuf byteBuf)
public static int maxLifetime(ByteBuf byteBuf)
public static int payloadOffset(ByteBuf byteBuf)