public interface AdaptrisMessageListener
Applies arbitrary processing to AdaptrisMessage
s. Applicable
where the calling code does not want to be informed
of any Exception
s that may occur. Service
is applicable where the container requires to be informed of
Exception
s.
Service
Modifier and Type | Method and Description |
---|---|
java.lang.String |
friendlyName()
Get the friendly name for this component.
|
void |
onAdaptrisMessage(AdaptrisMessage msg)
It is the responsibility of implementations of this interface to ensure
that all
Exception s, including RuntimeException s,
are handled. |
void onAdaptrisMessage(AdaptrisMessage msg)
It is the responsibility of implementations of this interface to ensure
that all Exception
s, including RuntimeException
s,
are handled. Failure to handle any Exception
will result in
undefined behaviour. Throwing a RuntimeException
to this
method is considered a bug.
Although most clients of implementations of this interface are likely to
be single-threaded, if implementations are not guaranteed to be thread
safe, they should be synchronized
or use some other locking
mechanism.
msg
- the AdaptrisMessage
to processjava.lang.String friendlyName()