Top Description Inners Fields Constructors Methods
io.rsocket.frame

public final Enum FrameType

extends Enum<FrameType>
Class Inheritance
Imports
java.util.Arrays

Types of Frame that can be sent.
See Also
Frame Types

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final FrameType
CANCEL

Cancel outstanding request.

public static final FrameType
COMPLETE

A PAYLOAD frame with COMPLETE flag set.

pack-priv static final int
ENCODED_SIZE

The size of the encoded frame type

private final int
public static final FrameType
ERROR

Error at connection or application level.

public static final FrameType
EXT

Used To Extend more frame types as well as extensions.

private final int
private static final FrameType[]
public static final FrameType
KEEPALIVE

Connection keepalive.

public static final FrameType
LEASE

Sent by Responder to grant the ability to send requests.

public static final FrameType
METADATA_PUSH

Asynchronous Metadata frame.

public static final FrameType
NEXT

A PAYLOAD frame with NEXT flag set.

public static final FrameType
NEXT_COMPLETE

A PAYLOAD frame with NEXT and COMPLETE flags set.

public static final FrameType
PAYLOAD

Payload on a stream.

public static final FrameType
REQUEST_CHANNEL

Request a completable stream in both directions.

public static final FrameType
REQUEST_FNF

A single one-way message.

public static final FrameType
REQUEST_N

Request N more items with Reactive Streams semantics.

public static final FrameType
REQUEST_RESPONSE

Request single response.

public static final FrameType
REQUEST_STREAM

Request a completable stream.

public static final FrameType
RESERVED

Reserved.

public static final FrameType
RESUME

Replaces SETUP for Resuming Operation (optional).

public static final FrameType
RESUME_OK

Sent in response to a RESUME if resuming operation possible (optional).

public static final FrameType
SETUP

Sent by client to initiate protocol processing.

Constructor Summary

AccessConstructor and Description
private
FrameType(int encodedType)

private
FrameType(int encodedType, int flags)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether the frame type can have data
canHaveData
()

Whether the frame type can have data.

public boolean

Returns:

whether the frame type can have metadata
canHaveMetadata
()

Whether the frame type can have metadata

public static FrameType

Returns:

the FrameType that matches the specified encodedType
fromEncodedType
(int
the encoded type
encodedType
)

Returns the FrameType that matches the specified encodedType.

public int

Returns:

the encoded type
getEncodedType
()

Returns the encoded type.

private static int
public boolean

Returns:

wether the frame type starts with an initial requestN
hasInitialRequestN
()

Whether the frame type starts with an initial requestN.

public boolean

Returns:

whether the frame type is fragmentable
isFragmentable
()

Whether the frame type is fragmentable.

public boolean

Returns:

whether the frame type is a request type
isRequestType
()

Whether the frame type is a request type.

public static FrameType
public static FrameType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CANCELback to summary
public static final FrameType CANCEL

Cancel outstanding request.

See Also
Cancel Frame
COMPLETEback to summary
public static final FrameType COMPLETE

A PAYLOAD frame with COMPLETE flag set.

ENCODED_SIZEback to summary
pack-priv static final int ENCODED_SIZE

The size of the encoded frame type

encodedTypeback to summary
private final int encodedType
ERRORback to summary
public static final FrameType ERROR

Error at connection or application level.

See Also
Error Frame
EXTback to summary
public static final FrameType EXT

Used To Extend more frame types as well as extensions.

See Also
Extension Frame
flagsback to summary
private final int flags
FRAME_TYPES_BY_ENCODED_TYPEback to summary
private static final FrameType[] FRAME_TYPES_BY_ENCODED_TYPE
KEEPALIVEback to summary
public static final FrameType KEEPALIVE

Connection keepalive.

See Also
Keepalive Frame
LEASEback to summary
public static final FrameType LEASE

Sent by Responder to grant the ability to send requests.

See Also
Lease Frame
METADATA_PUSHback to summary
public static final FrameType METADATA_PUSH

Asynchronous Metadata frame.

See Also
Metadata Push Frame
NEXTback to summary
public static final FrameType NEXT

A PAYLOAD frame with NEXT flag set.

NEXT_COMPLETEback to summary
public static final FrameType NEXT_COMPLETE

A PAYLOAD frame with NEXT and COMPLETE flags set.

PAYLOADback to summary
public static final FrameType PAYLOAD

Payload on a stream. For example, response to a request, or message on a channel.

See Also
Payload Frame
REQUEST_CHANNELback to summary
public static final FrameType REQUEST_CHANNEL

Request a completable stream in both directions.

See Also
Request Channel Frame
REQUEST_FNFback to summary
public static final FrameType REQUEST_FNF

A single one-way message.

See Also
Request Fire-and-Forget Frame
REQUEST_Nback to summary
public static final FrameType REQUEST_N

Request N more items with Reactive Streams semantics.

See Also
RequestN Frame
REQUEST_RESPONSEback to summary
public static final FrameType REQUEST_RESPONSE

Request single response.

See Also
Request Response Frame
REQUEST_STREAMback to summary
public static final FrameType REQUEST_STREAM

Request a completable stream.

See Also
Request Stream Frame
RESERVEDback to summary
public static final FrameType RESERVED

Reserved.

RESUMEback to summary
public static final FrameType RESUME

Replaces SETUP for Resuming Operation (optional).

See Also
Resume Frame
RESUME_OKback to summary
public static final FrameType RESUME_OK

Sent in response to a RESUME if resuming operation possible (optional).

See Also
Resume OK Frame
SETUPback to summary
public static final FrameType SETUP

Sent by client to initiate protocol processing.

See Also
Setup Frame

Constructor Detail

FrameTypeback to summary
private FrameType(int encodedType)
FrameTypeback to summary
private FrameType(int encodedType, int flags)

Method Detail

canHaveDataback to summary
public boolean canHaveData()

Whether the frame type can have data.

Returns:boolean

whether the frame type can have data

canHaveMetadataback to summary
public boolean canHaveMetadata()

Whether the frame type can have metadata

Returns:boolean

whether the frame type can have metadata

fromEncodedTypeback to summary
public static FrameType fromEncodedType(int encodedType)

Returns the FrameType that matches the specified encodedType.

Parameters
encodedType:int

the encoded type

Returns:FrameType

the FrameType that matches the specified encodedType

getEncodedTypeback to summary
public int getEncodedType()

Returns the encoded type.

Returns:int

the encoded type

getMaximumEncodedTypeback to summary
private static int getMaximumEncodedType()
hasInitialRequestNback to summary
public boolean hasInitialRequestN()

Whether the frame type starts with an initial requestN.

Returns:boolean

wether the frame type starts with an initial requestN

isFragmentableback to summary
public boolean isFragmentable()

Whether the frame type is fragmentable.

Returns:boolean

whether the frame type is fragmentable

isRequestTypeback to summary
public boolean isRequestType()

Whether the frame type is a request type.

Returns:boolean

whether the frame type is a request type

valueOfback to summary
public static FrameType valueOf(String name)
valuesback to summary
public static FrameType[] values()
io.rsocket.frame back to summary

private Class FrameType.Flags

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CAN_HAVE_DATAback to summary
private static final int CAN_HAVE_DATA
CAN_HAVE_METADATAback to summary
private static final int CAN_HAVE_METADATA
EMPTYback to summary
private static final int EMPTY
HAS_INITIAL_REQUEST_Nback to summary
private static final int HAS_INITIAL_REQUEST_N
IS_FRAGMENTABLEback to summary
private static final int IS_FRAGMENTABLE
IS_REQUEST_TYPEback to summary
private static final int IS_REQUEST_TYPE

Constructor Detail

Flagsback to summary
private Flags()