public abstract class AggregatingConsumeServiceImpl<E extends AdaptrisConnection> extends ServiceImp implements AggregatingConsumeService<E>
AggregatingConsumeService
implementations providing common functionality.log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
AggregatingConsumeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
protected void |
initService() |
void |
start()
Starts the component.
|
protected void |
start(ComponentLifecycle ac) |
void |
stop()
Stop the component
|
protected void |
stop(ComponentLifecycle ac) |
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnFailure, doService, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init
prepare
getLookupName
protected void start(ComponentLifecycle ac) throws ServiceException
ServiceException
protected void stop(ComponentLifecycle ac)
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
public void start() throws CoreException
ComponentLifecycle
Once a component is started it should be ready to process messages. In the case of AdaptrisMessageConsumer
, calling start
will begin message delivery.
start
in interface ComponentLifecycle
start
in class ServiceImp
CoreException
- wrapping any underlying Exception
spublic void stop()
ComponentLifecycle
A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer
, calling stop
will pause message delivery. Throwing a RuntimeException
may cause unintended consequences
stop
in interface ComponentLifecycle
stop
in class ServiceImp
protected void closeService()
closeService
in class ServiceImp