public interface Service extends AdaptrisComponent, MessageEventGenerator, StateManagedComponent, ComponentLifecycleExtension, JndiBindable
Implementations of Service
apply aribtrary functionality to
AdaptrisMessage
s. It is not the responsibility of
implementations of Service
to handle multiple
Thread
s - doService
need not be synchronized.
CONFIRMATION_ID_KEY
Modifier and Type | Method and Description |
---|---|
boolean |
continueOnFailure()
If true containers should continue and apply the next configured
Service even if this Service throws an
Exception . |
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
boolean |
isBranching()
Returns true if the implementation supports branching.
|
void |
setUniqueId(java.lang.String uniqueId)
Sets the unique identifier for this
Service . |
createName, createQualifier, isConfirmation, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init, start, stop
prepare
getLookupName
void doService(AdaptrisMessage msg) throws ServiceException
Apply the service to the message.
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
svoid setUniqueId(java.lang.String uniqueId)
Sets the unique identifier for this Service
. These unique
identifiers are optional but maybe required by some implementations of
ServiceCollection
.
uniqueId
- this Service
's unique identifierboolean isBranching()
Returns true if the implementation supports branching.
BranchingServiceCollection
boolean continueOnFailure()
If true containers should continue and apply the next configured
Service
even if this Service
throws an
Exception
.