public static synchronized ReconnectionManager getInstanceFor ( AbstractXMPPConnection connection ) { ReconnectionManager reconnectionManager = INSTANCES . get ( connection ) ; if ( reconnectionManager == null ) { reconnectionManager = new ReconnectionManager ( connection ) ; INSTANCES . put ( connection , reconnectionManager ) ; } return reconnectionManager ; }
Get a instance of ReconnectionManager for the given connection .