Top Fields Constructors Methods
io.rsocket.frame

public Class SetupFrameCodec

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, .ByteBufUtil, .Unpooled, io.rsocket.Payload, java.nio.charset.StandardCharsets, reactor.util.annotation.Nullable

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
FLAGS_RESUME_ENABLE

A flag used to indicate that the client requires connection resumption, if possible (the frame contains a Resume Identification Token)

public static final int
FLAGS_WILL_HONOR_LEASE

A flag used to indicate that the client will honor LEASE sent by the server

private static final int
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
public static ByteBuf
data(ByteBuf byteBuf)

public static String
public static ByteBuf
encode(final ByteBufAllocator allocator, final boolean lease, final int keepaliveInterval, final int maxLifetime, final String metadataMimeType, final String dataMimeType, final Payload setupPayload)

public static ByteBuf
encode(final ByteBufAllocator allocator, final boolean lease, final int keepaliveInterval, final int maxLifetime, final ByteBuf resumeToken, final String metadataMimeType, final String dataMimeType, final Payload setupPayload)

public static boolean
public static String
public static boolean
public static int
public static int
public static ByteBuf
metadata(ByteBuf byteBuf)

public static String
public static boolean
public static ByteBuf
public static int
private static void
public static int
version(ByteBuf byteBuf)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CURRENT_VERSIONback to summary
public static final int CURRENT_VERSION
FLAGS_RESUME_ENABLEback to summary
public static final int FLAGS_RESUME_ENABLE

A flag used to indicate that the client requires connection resumption, if possible (the frame contains a Resume Identification Token)

FLAGS_WILL_HONOR_LEASEback to summary
public static final int FLAGS_WILL_HONOR_LEASE

A flag used to indicate that the client will honor LEASE sent by the server

KEEPALIVE_INTERVAL_FIELD_OFFSETback to summary
private static final int KEEPALIVE_INTERVAL_FIELD_OFFSET
KEEPALIVE_MAX_LIFETIME_FIELD_OFFSETback to summary
private static final int KEEPALIVE_MAX_LIFETIME_FIELD_OFFSET
VARIABLE_DATA_OFFSETback to summary
private static final int VARIABLE_DATA_OFFSET
VERSION_FIELD_OFFSETback to summary
private static final int VERSION_FIELD_OFFSET

Constructor Detail

SetupFrameCodecback to summary
public SetupFrameCodec()

Method Detail

bytesToSkipToMimeTypeback to summary
private static int bytesToSkipToMimeType(ByteBuf byteBuf)
databack to summary
public static ByteBuf data(ByteBuf byteBuf)
dataMimeTypeback to summary
public static String dataMimeType(ByteBuf byteBuf)
encodeback to summary
public static ByteBuf encode(final ByteBufAllocator allocator, final boolean lease, final int keepaliveInterval, final int maxLifetime, final String metadataMimeType, final String dataMimeType, final Payload setupPayload)
encodeback to summary
public static ByteBuf encode(final ByteBufAllocator allocator, final boolean lease, final int keepaliveInterval, final int maxLifetime, final ByteBuf resumeToken, final String metadataMimeType, final String dataMimeType, final Payload setupPayload)
honorLeaseback to summary
public static boolean honorLease(ByteBuf byteBuf)
humanReadableVersionback to summary
public static String humanReadableVersion(ByteBuf byteBuf)
isSupportedVersionback to summary
public static boolean isSupportedVersion(ByteBuf byteBuf)
keepAliveIntervalback to summary
public static int keepAliveInterval(ByteBuf byteBuf)
keepAliveMaxLifetimeback to summary
public static int keepAliveMaxLifetime(ByteBuf byteBuf)
metadataback to summary
public static ByteBuf metadata(ByteBuf byteBuf)
Annotations
@Nullable
metadataMimeTypeback to summary
public static String metadataMimeType(ByteBuf byteBuf)
resumeEnabledback to summary
public static boolean resumeEnabled(ByteBuf byteBuf)
resumeTokenback to summary
public static ByteBuf resumeToken(ByteBuf byteBuf)
resumeTokenLengthback to summary
public static int resumeTokenLength(ByteBuf byteBuf)
skipToPayloadback to summary
private static void skipToPayload(ByteBuf byteBuf)
versionback to summary
public static int version(ByteBuf byteBuf)