public interface Service extends AdaptrisComponent, MessageEventGenerator, StateManagedComponent, ComponentLifecycleExtension
 Implementations of Service apply aribtrary functionality to
 AdaptrisMessages. It is not the responsibility of
 implementations of Service to handle multiple
 Threads - doService need not be synchronized.
 
| 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, isTrackingEndpointchangeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentStategetUniqueIdclose, init, start, stoppreparevoid doService(AdaptrisMessage msg) throws ServiceException
Apply the service to the message.
msg - the AdaptrisMessage to processServiceException - wrapping any underlying Exceptionsvoid 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.
BranchingServiceCollectionboolean continueOnFailure()
 If true containers should continue and apply the next configured
 Service even if this Service throws an
 Exception.