public abstract class AbstractActivePollingModule extends AbstractActiveReceiverModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_POLLING_INTERVAL |
m_aRWLock| Constructor and Description |
|---|
AbstractActivePollingModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart()
Implement the internal start logic.
|
void |
doStop()
Implement the internal stop logic.
|
long |
getInterval() |
void |
initDynamicComponent(IAS2Session aSession,
com.helger.commons.collection.attr.IStringMap aOptions)
After creating a Component object, this method should be called to set any
parameters used by the component.
|
boolean |
isBusy() |
abstract void |
poll() |
void |
setBusy(boolean bBusy) |
void |
setInterval(long nSeconds) |
canHandle, forceStop, handle, isRunning, start, stop, toStringattrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisRunning, start, stopcanHandle, handleattrs, getName, getSessionpublic static final String ATTR_POLLING_INTERVAL
@OverridingMethodsMustInvokeSuper public void initDynamicComponent(@Nonnull IAS2Session aSession, @Nullable com.helger.commons.collection.attr.IStringMap aOptions) throws OpenAS2Exception
IDynamicComponentinitDynamicComponent in interface IDynamicComponentinitDynamicComponent in class AbstractDynamicComponentaSession - the component uses this object to access other componentsaOptions - configuration values for the component. All parameters will be
stored as attributes of this component. All attributes existing
before this method is called will be removed!OpenAS2Exception - If an error occurs while initializing the componentInvalidParameterException - If a required parameter is null in the parameters MapIAS2Sessionpublic void setInterval(long nSeconds)
public long getInterval()
public abstract void poll()
public void doStart()
throws OpenAS2Exception
AbstractActiveModuledoStart in class AbstractActiveModuleOpenAS2Exception - In case of an error.public void doStop()
throws OpenAS2Exception
AbstractActiveModuledoStop in class AbstractActiveModuleOpenAS2Exception - In case of an error.public boolean isBusy()
public void setBusy(boolean bBusy)
Copyright © 2013–2019 Philip Helger. All rights reserved.