public int determinePort ( ) { if ( CollectionUtils . isEmpty ( this . parsedAddresses ) ) { return getPort ( ) ; } Address address = this . parsedAddresses . get ( 0 ) ; return address . port ; }
Returns the port from the first address or the configured port if no addresses have been set .