public interface JmsReceiverMapper
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Disposes of any background threads, caches or other resources created by this
mapper instance.
|
MappableApamaEvent |
mapJmsToApamaMessage(JmsReceiverMapperContext context,
javax.jms.Message message)
Converts a JMS message object to an Apama event string (and unique message id for dup elimination, if available).
|
MappableApamaEvent mapJmsToApamaMessage(JmsReceiverMapperContext context, javax.jms.Message message) throws java.lang.Exception, javax.jms.JMSException
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
- Never null.message
- Never null.java.lang.Exception
- If the mapping could not be performed for some reason.javax.jms.JMSException
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-2016 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.