public enum FrameType extends Enum<FrameType>
Enum Constant and Description |
---|
CANCEL
Cancel outstanding request.
|
COMPLETE
A
PAYLOAD frame with COMPLETE flag set. |
ERROR
Error at connection or application level.
|
EXT
Used To Extend more frame types as well as extensions.
|
KEEPALIVE
Connection keepalive.
|
LEASE
Sent by Responder to grant the ability to send requests.
|
METADATA_PUSH
Asynchronous Metadata frame.
|
NEXT
A
PAYLOAD frame with NEXT flag set. |
NEXT_COMPLETE
|
PAYLOAD
Payload on a stream.
|
REQUEST_CHANNEL
Request a completable stream in both directions.
|
REQUEST_FNF
A single one-way message.
|
REQUEST_N
Request N more items with Reactive Streams semantics.
|
REQUEST_RESPONSE
Request single response.
|
REQUEST_STREAM
Request a completable stream.
|
RESERVED
Reserved.
|
RESUME
Replaces SETUP for Resuming Operation (optional).
|
RESUME_OK
Sent in response to a RESUME if resuming operation possible (optional).
|
SETUP
Sent by client to initiate protocol processing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHaveData()
Whether the frame type can have data.
|
boolean |
canHaveMetadata()
Whether the frame type can have metadata
|
static FrameType |
fromEncodedType(int encodedType)
Returns the
FrameType that matches the specified encodedType . |
int |
getEncodedType()
Returns the encoded type.
|
boolean |
hasInitialRequestN()
Whether the frame type starts with an initial
requestN . |
boolean |
isFragmentable()
Whether the frame type is fragmentable.
|
boolean |
isRequestType()
Whether the frame type is a request type.
|
static FrameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FrameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrameType RESERVED
public static final FrameType SETUP
public static final FrameType LEASE
public static final FrameType KEEPALIVE
public static final FrameType REQUEST_RESPONSE
public static final FrameType REQUEST_FNF
public static final FrameType REQUEST_STREAM
public static final FrameType REQUEST_CHANNEL
public static final FrameType REQUEST_N
public static final FrameType CANCEL
public static final FrameType PAYLOAD
public static final FrameType ERROR
public static final FrameType METADATA_PUSH
public static final FrameType RESUME
public static final FrameType RESUME_OK
public static final FrameType NEXT_COMPLETE
public static final FrameType EXT
public static FrameType[] values()
for (FrameType c : FrameType.values()) System.out.println(c);
public static FrameType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static FrameType fromEncodedType(int encodedType)
FrameType
that matches the specified encodedType
.encodedType
- the encoded typeFrameType
that matches the specified encodedType
public boolean canHaveData()
public boolean canHaveMetadata()
public int getEncodedType()
public boolean hasInitialRequestN()
requestN
.requestN
public boolean isFragmentable()
public boolean isRequestType()