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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
abstract boolean
Remove 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:
close
in interfaceAutoCloseable
-