public HazelcastMemberBuilder setMembers ( Collection < String > c ) { this . members = c . stream ( ) . map ( host -> host . contains ( ":" ) ? host : format ( "%s:%s" , host , CLUSTER_NODE_HZ_PORT . getDefaultValue ( ) ) ) . collect ( Collectors . toList ( ) ) ; return this ; }
Adds references to cluster members . If port is missing then default port is automatically added .