public interface JmsSenderMapper
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Disposes of any background threads, caches or other resources created by this
mapper instance.
|
JmsSenderMessageHolder |
mapApamaToJmsMessage(JmsSenderMapperContext context,
MappableApamaEvent event)
Converts an Apama event string and (possibly null) unique
ids for duplicate elimination to a JmsSenderMessageHolder object containing the message
and message sending parameters.
|
JmsSenderMessageHolder mapApamaToJmsMessage(JmsSenderMapperContext context, MappableApamaEvent event) throws java.lang.Exception
Threading: a separate instance of the mapper interface will be created for each thread, so implementations of this method are not required to be thread-safe, and should in fact be careful to avoid synchronizing on data structures shared with other mapper instance to ensure mapping can be performed in parallel. Implementors may use read-only (unsynchronized) shared configuration state, including Apama EventType objects, but caches and other read-write data structures should be stored in instances of this object to ensure optimum performance and scalability.
context
- Should never be nullevent
- Should never be nulljava.lang.Exception
void destroy()
Most mappers do not need to do anything in their implementation of this method. Note that this method will always be called after all mapping is complete, however it may not be called on the same thread that mapping happened on.
Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.