public class InMemoryResenderModule extends AbstractActiveResenderModule
handle(String, IMessage, Map) the document is added to a queue there
is a background poller task that checks for resending (see resend()
). If resending fails an exception is thrown.ATTR_POLLING_INTERVAL_SECONDS, ATTR_RESEND_DELAY_SECONDS, DEFAULT_POLLING_MS, DEFAULT_RESEND_DELAY_MSm_aRWLockDEFAULT_RETRIES, DO_RESEND, DO_RESENDMDN, OPTION_CAUSE, OPTION_INITIAL_SENDER, OPTION_RESEND_ACTION, OPTION_RETRIES| Constructor and Description |
|---|
InMemoryResenderModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String sAction,
IMessage aMsg,
Map<String,Object> aOptions) |
void |
doStop()
Implement the internal stop logic.
|
com.helger.commons.collection.impl.ICommonsList<ResendItem> |
getAllResendItems() |
int |
getResendItemCount() |
void |
handle(String sAction,
IMessage aMsg,
Map<String,Object> aOptions) |
void |
removeAllResendItems()
Remove all resend items.
|
void |
resend() |
protected void |
resendItem(ResendItem aItem) |
doStart, equals, getResendDelayMS, hashCode, initDynamicComponentforceStop, isRunning, start, stop, toStringattrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSessionclone, finalize, getClass, notify, notifyAll, wait, wait, waitattrs, getName, getSessionpublic boolean canHandle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions)
canHandle in interface IProcessorModulecanHandle in class AbstractActiveModulepublic void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions) throws AS2Exception
handle in interface IProcessorModulehandle in class AbstractActiveModuleAS2Exceptionprotected void resendItem(@Nonnull ResendItem aItem) throws AS2Exception
AS2Exceptionpublic void resend()
resend in class AbstractActiveResenderModule@Nonnegative public int getResendItemCount()
public void removeAllResendItems()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ResendItem> getAllResendItems()
public void doStop()
throws AS2Exception
AbstractActiveModuledoStop in class AbstractActiveResenderModuleAS2Exception - In case of an error.Copyright © 2013–2022 Philip Helger. All rights reserved.