private String buildConnectionDescription() {

      List<String> descList = Lists.newArrayListWithExpectedSize(4);
      for(ConnectionPoolSegment segment : segments) {
         String desc = segment.dbConnection.getConnectionDescription();
         if(!descList.contains(desc)) {
            descList.add(desc);
         }
      }

      return Joiner.on(',').join(descList);
   }
private String buildConnectionDescription ( ) { List < String > descList = Lists . newArrayListWithExpectedSize ( 4 ) ; for ( ConnectionPoolSegment segment : segments ) { String desc = segment . dbConnection . getConnectionDescription ( ) ; if ( ! descList . contains ( desc ) ) { descList . add ( desc ) ; } } return Joiner . on ( ',' ) . join ( descList ) ; }
Gets a description of the (real) database connection.
@return The connection description.