@ Override public Server chooseServer ( Object key ) { Server server = super . chooseServer ( key ) ; if ( server == null ) { return null ; } server . setPort ( port ) ; return server ; }
This function is called from ConnectionPool to retrieve which server to communicate