@Repository @Transactional(propagation=MANDATORY) public class MessageOperationDaoJpaImpl extends Object implements MessageOperationDao
MessageOperationDao
interface.Constructor and Description |
---|
MessageOperationDaoJpaImpl() |
Modifier and Type | Method and Description |
---|---|
void |
removeExtCalls(Message msg,
boolean totalRestart)
Removes external calls for specific message.
|
boolean |
setCancelState(Message msg)
Cancels next message processing = change the message state to
MsgStateEnum.CANCEL . |
boolean |
setPartlyFailedState(Message msg)
Restarts message = change the message state from FAILED -> PARTLY_FAILED.
|
public boolean setPartlyFailedState(Message msg)
MessageOperationDao
Only messages in FAILED state can be changed, otherwise exception will be thrown.
setPartlyFailedState
in interface MessageOperationDao
msg
- the messagetrue
if state was successfully set, otherwise false
public void removeExtCalls(Message msg, boolean totalRestart)
MessageOperationDao
removeExtCalls
in interface MessageOperationDao
msg
- the messagetotalRestart
- true
if all external call should be deleted (=message will be processed from scratch)
or false
if only external calls for confirmations should be deletedpublic boolean setCancelState(Message msg)
MessageOperationDao
MsgStateEnum.CANCEL
.setCancelState
in interface MessageOperationDao
msg
- the messagetrue
if state was successfully set, otherwise false
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.