/** * Returns a new Raft server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. The provided set of * members will be used to connect to the other members in the Raft cluster. The local server {@link Address} does * not have to be present in the address list. * * @param type The server member type. * @param clientAddress The address through which clients connect to the server. * @param serverAddress The local server member address. * @param cluster The cluster members to which to connect. * @return The server builder. */ public static Builder builder(Member.Type type, Address clientAddress, Address serverAddress, Collection<Address> cluster) { return new Builder(clientAddress, serverAddress, cluster).withType(type); }
/** * Returns a new Raft server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. The provided set of * members will be used to connect to the other members in the Raft cluster. The local server {@link Address} does * not have to be present in the address list. * * @param type The server member type. * @param address The address through which clients and servers connect to this server. * @param cluster The cluster members to which to connect. * @return The server builder. */ public static Builder builder(Member.Type type, Address address, Collection<Address> cluster) { return new Builder(address, address, cluster).withType(type); }
/** * Returns a new Raft server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. The provided set of * members will be used to connect to the other members in the Raft cluster. The local server {@link Address} does * not have to be present in the address list. * * @param clientAddress The address through which clients connect to the server. * @param serverAddress The local server member address. * @param cluster The cluster members to which to connect. * @return The server builder. */ public static Builder builder(Address clientAddress, Address serverAddress, Collection<Address> cluster) { return new Builder(clientAddress, serverAddress, cluster); }
/** * Returns a new Raft server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. The provided set of * members will be used to connect to the other members in the Raft cluster. The local server {@link Address} does * not have to be present in the address list. * * @param address The address through which clients and servers connect to this server. * @param cluster The cluster members to which to connect. * @return The server builder. */ public static Builder builder(Address address, Collection<Address> cluster) { return new Builder(address, address, cluster); }
/** * Returns a new Copycat server builder. * <p> * The provided {@link Address}es are the client and server address to which to bind the server being * constructed respectively. * * @param clientAddress The address through which clients connect to the server. * @param serverAddress The local server member address. * @return The server builder. */ public static Builder builder(Address clientAddress, Address serverAddress) { return new Builder(clientAddress, serverAddress); }
/** * Returns a new Copycat server builder. * <p> * The provided {@link Address}es are the client and server address to which to bind the server being * constructed respectively. * * @param clientAddress The address through which clients connect to the server. * @param serverAddress The local server member address. * @return The server builder. */ public static Builder builder(Address clientAddress, Address serverAddress) { return new Builder(clientAddress, serverAddress); }
/** * Returns a new Copycat server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. * * @param address The address through which clients and servers connect to this server. * @return The server builder. */ public static Builder builder(Address address) { return new Builder(address, address); }
/** * Returns a new Copycat server builder. * <p> * The provided {@link Address} is the address to which to bind the server being constructed. * * @param address The address through which clients and servers connect to this server. * @return The server builder. */ public static Builder builder(Address address) { return new Builder(address, address); }