public class MessageDeliveryServiceImpl extends Object implements MessageDeliveryService
Constructor and Description |
---|
MessageDeliveryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMessageDelivery(MessageDelivery messageDelivery)
Deletes a MessageDelivery
|
Collection<MessageDelivery> |
getAllMessageDeliveries()
This method will return all MessageDelivery objects in the system
|
Collection<MessageDelivery> |
getMessageDeliveries(Message message)
This method will return all MessageDelievery objects generated for the given Message
|
MessageDelivery |
getMessageDelivery(Long id)
This method will retrieve a MessageDelivery object from the system, given the id of the
actual record.
|
MessageDelivery |
getMessageDeliveryByDelivererSystemId(Long id)
This method will retrieve a MessageDelivery object from the system, given the external deliverer system id
registered with the MessageDelivery.
|
Collection<MessageDelivery> |
lockAndTakeMessageDeliveries(Long messageId,
MessageDeliveryStatus[] statuses)
Locks and takes all message deliveries of a given message in the system with any of the specified statuses
|
Collection<MessageDelivery> |
lockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses)
Locks and takes all message deliveries in the system with any of the specified statuses
|
MessageDelivery |
saveMessageDelivery(MessageDelivery delivery)
Saves a MessageDelivery
|
void |
setDataObjectService(DataObjectService dataObjectService)
Sets the data object service.
|
void |
setMaxProcessAttempts(int maxProcessAttempts)
Sets the max processing attempts
|
public MessageDeliveryServiceImpl()
public void setMaxProcessAttempts(int maxProcessAttempts)
maxProcessAttempts
- the max delivery attemptspublic MessageDelivery saveMessageDelivery(MessageDelivery delivery)
MessageDeliveryService
saveMessageDelivery
in interface MessageDeliveryService
delivery
- the MessageDelivery to saveMessageDeliveryService.saveMessageDelivery(org.kuali.rice.kcb.bo.MessageDelivery)
public void deleteMessageDelivery(MessageDelivery messageDelivery)
MessageDeliveryService
deleteMessageDelivery
in interface MessageDeliveryService
messageDelivery
- the MessageDelivery to deleteMessageDeliveryService.deleteMessageDelivery(MessageDelivery)
public Collection<MessageDelivery> getAllMessageDeliveries()
MessageDeliveryService
getAllMessageDeliveries
in interface MessageDeliveryService
MessageDeliveryService.getAllMessageDeliveries()
public MessageDelivery getMessageDelivery(Long id)
MessageDeliveryService
getMessageDelivery
in interface MessageDeliveryService
MessageDeliveryService.getMessageDelivery(java.lang.Long)
public MessageDelivery getMessageDeliveryByDelivererSystemId(Long id)
MessageDeliveryService
getMessageDeliveryByDelivererSystemId
in interface MessageDeliveryService
id
- the external deliverer system idMessageDeliveryService.getMessageDeliveryByDelivererSystemId(java.lang.Long)
public Collection<MessageDelivery> getMessageDeliveries(Message message)
MessageDeliveryService
getMessageDeliveries
in interface MessageDeliveryService
message
- the message which generated the message deliveriesMessageDeliveryService.getMessageDeliveries(org.kuali.rice.kcb.bo.Message)
public Collection<MessageDelivery> lockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses)
MessageDeliveryService
lockAndTakeMessageDeliveries
in interface MessageDeliveryService
statuses
- the statuses of message deliveries to takepublic Collection<MessageDelivery> lockAndTakeMessageDeliveries(Long messageId, MessageDeliveryStatus[] statuses)
MessageDeliveryService
lockAndTakeMessageDeliveries
in interface MessageDeliveryService
messageId
- the id of the message whose deliveries to takestatuses
- the statuses of message deliveries to takepublic void setDataObjectService(DataObjectService dataObjectService)
dataObjectService
- service to persist data to the datasourceCopyright © 2005–2014 The Kuali Foundation. All rights reserved.