static <ID extends MemberIdentifier> MembershipBuilder<ID> newMembershipBuilder(
      final TcpSocketCreator socketCreator,
      final TcpClient locatorClient,
      final DSFIDSerializer serializer,
      final MemberIdentifierFactory<ID> memberFactory) {
    return new MembershipBuilderImpl<>(
        socketCreator, locatorClient, serializer, memberFactory);
  }
A builder for creating a new {@link Membership}. Use this builder to configure a
new Membership and to install various sorts of listeners Listeners receive lifecycle,
cluster and peer-to-peer message notification.
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/api/MembershipBuilder.java