Developing Apama Applications > Developing Adapters > Java Transport Plug-in Development > The Java Transport Plug-in Development Specification > Communication with the codec layer > Sending upstream messages received from a codec plug-in to a sink
Sending upstream messages received from a codec plug-in to a sink
When a codec plug-in has encoded an event ready for transmission by a transport plug-in it will pass it on calling the transport’s sendTransportEvent method (as defined above). It is then up to the transport plug-in to process the message (which will be of some type agreed by the codec and transport plug-in authors), and send it on to the external sink it provides access to.
Note that there are no guarantees about which threads might call this method, so plug-in authors will need to consider thread synchronization issues carefully.
If there is a problem sending the event on, the transport plug-in should throw a TransportException.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.