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 forBinaryDiscoveryClusterAddressProvider
configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BinaryClusterDiscoveryEndpoint.Builder
Builder 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.Builder
builder()
Builder forBinaryClusterDiscoveryEndpoint
TarantoolClientConfig
getClientConfig()
Get client configuration for connecting to the set of the discovery endpointsString
getDiscoveryFunction()
Get discovery function nameTarantoolClusterAddressProvider
getEndpointProvider()
Get service discovery endpoint providervoid
setClientConfig(TarantoolClientConfig clientConfig)
Set client configuration for connecting to the set of the discovery endpoints.void
setDiscoveryFunction(String discoveryFunction)
Set discovery function namevoid
setEndpointProvider(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
-
-