Package com.helger.as2lib.processor
Class AsyncMessageProcessor
- java.lang.Object
-
- com.helger.as2lib.AbstractDynamicComponent
-
- com.helger.as2lib.processor.AbstractMessageProcessor
-
- com.helger.as2lib.processor.AsyncMessageProcessor
-
- All Implemented Interfaces:
IDynamicComponent
,IMessageProcessor
,Serializable
@NotThreadSafe public class AsyncMessageProcessor extends AbstractMessageProcessor
An implementation ofAbstractMessageProcessor
that uses a separate thread for performing the main actions.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLock
-
Fields inherited from interface com.helger.as2lib.processor.IMessageProcessor
ATTR_PENDINGMDN, ATTR_PENDINGMDNINFO
-
-
Constructor Summary
Constructors Constructor Description AsyncMessageProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<Throwable>>
exceptionCallbacks()
protected Thread
getProcessortThread()
void
handle(String sAction, IMessage aMsg, Map<String,Object> aOptions)
int
hashCode()
-
Methods inherited from class com.helger.as2lib.processor.AbstractMessageProcessor
addModule, executeAction, getAllActiveModules, getAllModules, getAllModulesOfClass, getModuleCount, getModuleOfClass, getPendingMDNFolder, getPendingMDNInfoFolder, removeModule, setPendingMDNFolder, setPendingMDNInfoFolder, startActiveModules, stopActiveModules
-
Methods inherited from class com.helger.as2lib.AbstractDynamicComponent
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, initDynamicComponent, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
-
-
-
Method Detail
-
exceptionCallbacks
@Nonnull @ReturnsMutableObject public final com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<Throwable>> exceptionCallbacks()
-
handle
public void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions) throws AS2Exception
- Throws:
AS2Exception
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractMessageProcessor
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMessageProcessor
-
-