public enum FlowType extends Enum<FlowType>
BeforeSequence
, AfterSequence
, BeforeEndpoint
and AfterEndpoint
annotations.
FlowType | Description |
---|---|
IN |
the incoming message flow |
OUT |
the outgoing message flow |
ERROR |
the error message flow |
ALL |
all the above 3 message flows |
Modifier and Type | Method and Description |
---|---|
static FlowType |
fromMessage(Message message)
Constructs the
FlowType of the current message |
boolean |
matches(FlowType flowType)
Whether the given type matches this type.
|
static FlowType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlowType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowType IN
public static final FlowType OUT
public static final FlowType ALL
public static FlowType[] values()
for (FlowType c : FlowType.values()) System.out.println(c);
public static FlowType 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 boolean matches(FlowType flowType)
ALL
both IN and OUT types are
considered as matches.flowType
- the flow type to be matchedCopyright © 2010–2016 AdroitLogic. All rights reserved.