Developing Apama Applications > Developing Adapters > Java Plug-in Support APIs > Using the latency framework
Using the latency framework
The latency framework API provides a way to measure adapter latency by attaching high-resolution timing data to events as they stream into, through, and out of the adapter. Developers can then use these events to compute upstream, downstream, and round-trip latency numbers, including latency across multiple adapters.
Beginning with Apama 4.0, the sendNormalisedEvent() and sendTransportEvent() methods contain a TimestampSet parameter that carries the microsecond-accurate timestamps that can be used to compute the desired statistics.
HTML Javadoc documentation for com.apama.util.TimestampSet and com.apama.util.TimestampConfig classes is provided as part of the Apama documentation set. The Javadoc is located in the Apama installation’s doc\javadoc directory.
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.