public abstract class AbstractActiveResenderModule extends AbstractActiveModule implements IProcessorResenderModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_POLLING_INTERVAL_SECONDS
The polling interval in seconds
|
static String |
ATTR_RESEND_DELAY_SECONDS
The resend delay in seconds
|
static long |
DEFAULT_POLLING_MS
The timer default polling interval of 30 seconds.
|
static long |
DEFAULT_RESEND_DELAY_MS
The default resend delay in milliseconds (15 minutes)
|
m_aRWLockDEFAULT_RETRIES, DO_RESEND, DO_RESENDMDN, OPTION_CAUSE, OPTION_INITIAL_SENDER, OPTION_RESEND_ACTION, OPTION_RETRIES| Constructor and Description |
|---|
AbstractActiveResenderModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart()
Implement the internal start logic.
|
void |
doStop()
Implement the internal stop logic.
|
boolean |
equals(Object o) |
protected long |
getResendDelayMS() |
int |
hashCode() |
void |
initDynamicComponent(IAS2Session aSession,
com.helger.commons.collection.attr.IStringMap aParameters)
After creating a Component object, this method should be called to set any
parameters used by the component.
|
abstract void |
resend() |
canHandle, forceStop, handle, isRunning, start, stop, toStringattrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSessionclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanHandle, handleattrs, getName, getSessionpublic static final String ATTR_RESEND_DELAY_SECONDS
public static final String ATTR_POLLING_INTERVAL_SECONDS
public static final long DEFAULT_RESEND_DELAY_MS
public static final long DEFAULT_POLLING_MS
@OverridingMethodsMustInvokeSuper public void initDynamicComponent(@Nonnull IAS2Session aSession, @Nullable com.helger.commons.collection.attr.IStringMap aParameters) throws AS2Exception
IDynamicComponentinitDynamicComponent in interface IDynamicComponentinitDynamicComponent in class AbstractDynamicComponentaSession - the component uses this object to access other componentsaParameters - 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!AS2Exception - If an error occurs while initializing the componentAS2InvalidParameterException - If a required parameter is null in the parameters MapIAS2Session@Nonnegative protected final long getResendDelayMS() throws AS2InvalidParameterException
AS2InvalidParameterException - If an invalid value is configured.public abstract void resend()
@OverridingMethodsMustInvokeSuper public void doStart() throws AS2Exception
AbstractActiveModuledoStart in class AbstractActiveModuleAS2Exception - In case of an error.@OverridingMethodsMustInvokeSuper public void doStop() throws AS2Exception
AbstractActiveModuledoStop in class AbstractActiveModuleAS2Exception - In case of an error.public boolean equals(Object o)
equals in class AbstractActiveModulepublic int hashCode()
hashCode in class AbstractActiveModuleCopyright © 2013–2022 Philip Helger. All rights reserved.