@ComponentProfile(summary="Delete a message from the retry store", since="3.11.1", tag="retry") public class RetryStoreDeleteService extends RetryStoreServiceImpl
While not tightly coupled it is designed as a supporting service for use with
RetryFromJetty
.
In the adapter configuration file this class is aliased as retry-store-delete-service which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
RetryStoreDeleteService() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
java.lang.String |
getMessageId()
The messageID to delete.
|
void |
prepare()
Prepare for initialisation.
|
void |
setMessageId(java.lang.String messageId)
The messageID to delete.
|
RetryStoreDeleteService |
withMessageId(java.lang.String s) |
closeService, getRetryStore, initService, setRetryStore, start, stop, withRetryStore
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
spublic void prepare() throws CoreException
ComponentLifecycleExtension
prepare
in interface ComponentLifecycleExtension
prepare
in class RetryStoreServiceImpl
CoreException
public RetryStoreDeleteService withMessageId(java.lang.String s)
public java.lang.String getMessageId()
This supports metadata resolution via InterlokMessage.resolve(String)
since it is not
expected that it should be deleting the current messages unique-id.
public void setMessageId(java.lang.String messageId)
This supports metadata resolution via InterlokMessage.resolve(String)
since it is not
expected that it should be deleting the current messages unique-id.