Package org.jivesoftware.smack
Class XMPPConnectionRegistry
- java.lang.Object
-
- org.jivesoftware.smack.XMPPConnectionRegistry
-
public class XMPPConnectionRegistry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XMPPConnectionRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addConnectionCreationListener(ConnectionCreationListener connectionCreationListener)
Adds a new listener that will be notified when new Connections are created.protected static java.util.Collection<ConnectionCreationListener>
getConnectionCreationListeners()
Get the collection of listeners that are interested in connection creation events.static void
removeConnectionCreationListener(ConnectionCreationListener connectionCreationListener)
Removes a listener that was interested in connection creation events.
-
-
-
Constructor Detail
-
XMPPConnectionRegistry
public XMPPConnectionRegistry()
-
-
Method Detail
-
addConnectionCreationListener
public static void addConnectionCreationListener(ConnectionCreationListener connectionCreationListener)
Adds a new listener that will be notified when new Connections are created. Note that newly created connections will not be actually connected to the server.- Parameters:
connectionCreationListener
- a listener interested on new connections.
-
removeConnectionCreationListener
public static void removeConnectionCreationListener(ConnectionCreationListener connectionCreationListener)
Removes a listener that was interested in connection creation events.- Parameters:
connectionCreationListener
- a listener interested on new connections.
-
getConnectionCreationListeners
protected static java.util.Collection<ConnectionCreationListener> getConnectionCreationListeners()
Get the collection of listeners that are interested in connection creation events.- Returns:
- a collection of listeners interested on new connections.
-
-