Enum PayloadExchangeType
- java.lang.Object
-
- java.lang.Enum<PayloadExchangeType>
-
- org.springframework.security.rsocket.api.PayloadExchangeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PayloadExchangeType>
public enum PayloadExchangeType extends java.lang.Enum<PayloadExchangeType>
ThePayloadExchange
type- Since:
- 5.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRE_AND_FORGET
A Fire and Forget exchange.METADATA_PUSH
A Metadata Push exchange.PAYLOAD
A Payload exchange.REQUEST_CHANNEL
A Request Channel exchange.REQUEST_RESPONSE
A Request Response exchange.REQUEST_STREAM
A Request Stream exchange.SETUP
The Setup.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRequest()
Determines if this exchange is a type of request (i.e.static PayloadExchangeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PayloadExchangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SETUP
public static final PayloadExchangeType SETUP
The Setup. Can be used to determine if a Payload is part of the connection
-
FIRE_AND_FORGET
public static final PayloadExchangeType FIRE_AND_FORGET
A Fire and Forget exchange.
-
REQUEST_RESPONSE
public static final PayloadExchangeType REQUEST_RESPONSE
A Request Response exchange.
-
REQUEST_STREAM
public static final PayloadExchangeType REQUEST_STREAM
A Request Stream exchange. This is only represents the request portion. ThePAYLOAD
type represents the data that submitted.
-
REQUEST_CHANNEL
public static final PayloadExchangeType REQUEST_CHANNEL
A Request Channel exchange.
-
PAYLOAD
public static final PayloadExchangeType PAYLOAD
A Payload exchange.
-
METADATA_PUSH
public static final PayloadExchangeType METADATA_PUSH
A Metadata Push exchange.
-
-
Method Detail
-
values
public static PayloadExchangeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PayloadExchangeType c : PayloadExchangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PayloadExchangeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isRequest
public boolean isRequest()
Determines if this exchange is a type of request (i.e. the initial frame).- Returns:
- true if it is a request, else false
-
-