Package org.jivesoftware.smack
Class ListenerHandle
java.lang.Object
org.jivesoftware.smack.ListenerHandle
- All Implemented Interfaces:
 AutoCloseable
A handle of a listener, typically added to a connection. This handle implements 
AutoCloseable,
 allowing the the listener to be added using a try-with-resources statement.- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()abstract booleanRemove the handle's listener from the connection. 
- 
Field Details
- 
connection
 - 
listener
 
 - 
 - 
Method Details
- 
removeListener
Remove the handle's listener from the connection.- Returns:
 - true if the stanza listener was removed
 
 - 
close
- Specified by:
 closein interfaceAutoCloseable
 
 -