Developing Apama Applications > Developing Apama Applications in EPL > Working with Streams and Stream Queries > Using output from streams > Listener variables and streams
Listener variables and streams
Like event listeners, you can assign a stream listener to a listener variable. A stream listener exists until one of the following happens:
*The monitor instance that contains the stream listener is terminated
*The stream or streams the listener refers to are terminated
If you do not want to wait for one of the above to occur, you can stop a stream listener by calling the quit() method on a listener variable that refers to it. Note that in many cases this will also terminate the stream that is feeding the stream listener. See Stream network lifetime.
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.