public abstract class AdaptrisMessageConsumerImp extends AdaptrisMessageWorkerImp implements AdaptrisMessageConsumer, StateManagedComponent
Implementation of behaviour common to AdaptrisMessageConsumers.
log| Constructor and Description |
|---|
AdaptrisMessageConsumerImp() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(ComponentState newState)
Updates the state for the component
ComponentState. |
protected abstract java.lang.String |
newThreadName() |
void |
registerAdaptrisMessageListener(AdaptrisMessageListener l)
Sets the
AdaptrisMessageListener to use. |
protected java.lang.String |
renameThread()
Rename the thread to something suitable.
|
void |
requestClose()
Request this component is closed.
|
void |
requestInit()
Request this component is init'd.
|
void |
requestStart()
Request this component is started.
|
void |
requestStop()
Request this component is stopped.
|
AdaptrisMessageListener |
retrieveAdaptrisMessageListener()
Returns the
AdaptrisMessageListener to use. |
ComponentState |
retrieveComponentState()
Returns the last recorde
ComponentState. |
createName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumeLocationKeydecode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactorygetUniqueIdclose, init, start, stoppreparecreateName, createQualifier, isTrackingEndpointpublic void registerAdaptrisMessageListener(AdaptrisMessageListener l)
Sets the AdaptrisMessageListener to use.
registerAdaptrisMessageListener in interface AdaptrisMessageConsumerl - the AdaptrisMessageListener to usepublic AdaptrisMessageListener retrieveAdaptrisMessageListener()
Returns the AdaptrisMessageListener to use.
AdaptrisMessageListener to useprotected java.lang.String renameThread()
protected abstract java.lang.String newThreadName()
public void changeState(ComponentState newState)
StateManagedComponent
Updates the state for the component ComponentState.
changeState in interface StateManagedComponentpublic ComponentState retrieveComponentState()
StateManagedComponent
Returns the last recorde ComponentState.
retrieveComponentState in interface StateManagedComponentComponentStatepublic void requestInit()
throws CoreException
StateManagedComponentRequest this component is init'd.
requestInit in interface StateManagedComponentCoreException - wrapping any underlying Exceptionspublic void requestStart()
throws CoreException
StateManagedComponentRequest this component is started.
requestStart in interface StateManagedComponentCoreException - wrapping any underlying Exceptionspublic void requestStop()
StateManagedComponentRequest this component is stopped.
requestStop in interface StateManagedComponentpublic void requestClose()
StateManagedComponentRequest this component is closed.
requestClose in interface StateManagedComponent