public MemberSelector reset ( MemberId leader , Collection < MemberId > members ) { if ( changed ( leader , members ) ) { this . leader = leader != null && members . contains ( leader ) ? leader : null ; this . members = Sets . newLinkedHashSet ( members ) ; this . selections = strategy . selectConnections ( leader , Lists . newLinkedList ( members ) ) ; this . selectionsIterator = null ; } return this ; }
Resets the connection leader and members .