Package io.tarantool.driver.cluster
Class BinaryClusterDiscoveryEndpoint
- java.lang.Object
-
- io.tarantool.driver.cluster.BinaryClusterDiscoveryEndpoint
-
- All Implemented Interfaces:
TarantoolClusterDiscoveryEndpoint
public class BinaryClusterDiscoveryEndpoint extends Object implements TarantoolClusterDiscoveryEndpoint
Class-container forBinaryDiscoveryClusterAddressProviderconfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBinaryClusterDiscoveryEndpoint.BuilderBuilder forBinaryClusterDiscoveryEndpoint
-
Constructor Summary
Constructors Constructor Description BinaryClusterDiscoveryEndpoint()Create an instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryClusterDiscoveryEndpoint.Builderbuilder()Builder forBinaryClusterDiscoveryEndpointTarantoolClientConfiggetClientConfig()Get client configuration for connecting to the set of the discovery endpointsStringgetDiscoveryFunction()Get discovery function nameTarantoolClusterAddressProvidergetEndpointProvider()Get service discovery endpoint providervoidsetClientConfig(TarantoolClientConfig clientConfig)Set client configuration for connecting to the set of the discovery endpoints.voidsetDiscoveryFunction(String discoveryFunction)Set discovery function namevoidsetEndpointProvider(TarantoolClusterAddressProvider endpointProvider)Set service discovery endpoint provider
-
-
-
Constructor Detail
-
BinaryClusterDiscoveryEndpoint
public BinaryClusterDiscoveryEndpoint()
Create an instance- See Also:
BinaryDiscoveryClusterAddressProvider
-
-
Method Detail
-
getEndpointProvider
public TarantoolClusterAddressProvider getEndpointProvider()
Get service discovery endpoint provider- Returns:
- tarantool server address provider instance
-
setEndpointProvider
public void setEndpointProvider(TarantoolClusterAddressProvider endpointProvider)
Set service discovery endpoint provider- Parameters:
endpointProvider- a tarantool address provider instance
-
getClientConfig
public TarantoolClientConfig getClientConfig()
Get client configuration for connecting to the set of the discovery endpoints- Returns:
- tarantool client configuration
-
setClientConfig
public void setClientConfig(TarantoolClientConfig clientConfig)
Set client configuration for connecting to the set of the discovery endpoints. The same configuration will be used for each endpoint.- Parameters:
clientConfig- tarantool client configuration
-
getDiscoveryFunction
public String getDiscoveryFunction()
Get discovery function name- Returns:
- discovery function name
-
setDiscoveryFunction
public void setDiscoveryFunction(String discoveryFunction)
Set discovery function name- Parameters:
discoveryFunction- discovery function name
-
builder
public static BinaryClusterDiscoveryEndpoint.Builder builder()
Builder forBinaryClusterDiscoveryEndpoint- Returns:
- new builder instance
-
-