public final class MessageHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Set<MsgStateEnum> |
CANCEL_STATES
States valid for CANCEL operation.
|
static Set<MsgStateEnum> |
RESTART_STATES
States in which RESTART operation is available.
|
Modifier and Type | Method and Description |
---|---|
static List<MessageActionType> |
allowedActions(Message message)
Get allowed actions for message.
|
static void |
updateBusinessErrors(Message msg,
Map<String,Object> properties)
Checks the properties for those that end with
AsynchConstants.BUSINESS_ERROR_PROP_SUFFIX
and moves the found exceptions to the Message's business error list, subsequently returning it. |
public static final Set<MsgStateEnum> RESTART_STATES
public static final Set<MsgStateEnum> CANCEL_STATES
public static void updateBusinessErrors(Message msg, Map<String,Object> properties)
AsynchConstants.BUSINESS_ERROR_PROP_SUFFIX
and moves the found exceptions to the Message's business error list, subsequently returning it.
After this operation succeeds, there will be no more properties with the specified suffix, and the Message will contain all the exception messages that were previously in these properties.
msg
- the message to collect and set business errors forproperties
- the exchange properties, possibly with some new business errorspublic static List<MessageActionType> allowedActions(Message message)
message
- the message entity.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.