public B withDiscoveryPort(int discoveryPort) { this.discoveryPort = discoveryPort; return self(); } }
public static ServerBootstrap[] from(String... hostnameAndPortsList) { ServerBootstrap[] servers = new ServerBootstrap[hostnameAndPortsList.length]; for (int i = 0; i < hostnameAndPortsList.length; i++) { servers[i] = new ServerBootstrap(hostnameAndPortsList[i]); } return servers; }
public B withServerList(String[] serverList) { this.serverList = serverList; return self(); }
public B withBootstrapResolverType(ResolverType bootstrapResolverType) { this.bootstrapResolverType = bootstrapResolverType; return self(); }
/** * Unique name assigned to read or write cluster. */ public String getEurekaClusterName() { return config.getAppName(); }
@Override public Integer call(ServerBootstrap server) { return server.getDiscoveryPort(); } });
public B withServerList(String[] serverList) { this.serverList = serverList; return self(); }
public B withRegistrationPort(int writeServerPort) { this.registrationPort = writeServerPort; return self(); }
public B withDiscoveryPort(int discoveryPort) { this.discoveryPort = discoveryPort; return self(); } }
/** * Unique name assigned to read or write cluster. */ public String getEurekaClusterName() { return config.getAppName(); }
public B withWebAdminPort(int webAdminPort) { this.webAdminPort = webAdminPort; return self(); }
public B withReplicationRetryMillis(long replicationReconnectDelayMillis) { this.replicationReconnectDelayMillis = replicationReconnectDelayMillis; return self(); }
public B withWebAdminPort(int webAdminPort) { this.webAdminPort = webAdminPort; return self(); }
public B withEvictionTimeout(long evictionTimeoutMs) { this.evictionTimeoutMs = evictionTimeoutMs; return self(); }
public B withCodec(Codec codec) { this.codec = codec; return self(); }
public B withEvictionStrategyValue(String strategyValue) { this.evictionStrategyValue = strategyValue; return self(); } }
public B withAppName(String appName) { this.appName = appName; return self(); }
public B withDataCenterType(LocalDataCenterInfo.DataCenterType dataCenterType) { this.dataCenterType = dataCenterType; return self(); }
public B withEvictionTimeout(long evictionTimeoutMs) { this.evictionTimeoutMs = evictionTimeoutMs; return self(); }