@Service public class MessageOperationServiceImpl extends Object implements MessageOperationService
Constructor and Description |
---|
MessageOperationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelMessage(long messageId)
Cancels next message processing, sets
MsgStateEnum.CANCEL state. |
void |
restartMessage(long messageId,
boolean totalRestart)
Method restarts message enables the option for the user to re-set/restart a message in a FAILED/CANCEL state.
|
@Transactional public void restartMessage(long messageId, boolean totalRestart)
restartMessage
in interface MessageOperationService
messageId
- ID of the message that the user wants to restarttotalRestart
- Variable acts as SQL WHERE condition toggle between 2 statements@Transactional public void cancelMessage(long messageId)
MessageOperationService
MsgStateEnum.CANCEL
state.
Only MsgStateEnum.NEW
, MsgStateEnum.PARTLY_FAILED
and MsgStateEnum.POSTPONED
messages can be canceled.cancelMessage
in interface MessageOperationService
messageId
- the message IDCopyright © 2018 Pivotal Software, Inc.. All rights reserved.