Enum Class ExchangePattern
- All Implemented Interfaces:
Serializable, Comparable<ExchangePattern>, Constable
The message exchange pattern of an
Exchange, indicating whether the caller expects a reply.
InOnly is used for fire-and-forget messaging: the caller sends a message and does not wait for a response.
InOut is used for request-reply messaging: the caller sends a message and blocks until a response is
received.
The pattern is set on the Exchange and is checked by the Camel routing engine and endpoints to determine how
to handle the interaction.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangePatternbooleanReturn true if there can be an IN messagebooleanReturn true if there can be an OUT messagestatic ExchangePatternReturns the enum constant of this class with the specified name.static ExchangePattern[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
InOnly
Fire-and-forget: the caller sends a message and does not expect a reply. -
InOut
Request-reply: the caller sends a message and expects a response.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isInCapable
public boolean isInCapable()Return true if there can be an IN message -
isOutCapable
public boolean isOutCapable()Return true if there can be an OUT message -
asEnum
-