public class TarantoolClusterConnectionManager extends AbstractTarantoolConnectionManager
AbstractTarantoolConnectionManager
, aware of connecting to the Tarantool clusterConstructor and Description |
---|
TarantoolClusterConnectionManager(TarantoolClientConfig config,
TarantoolConnectionFactory connectionFactory,
TarantoolConnectionListeners listeners,
TarantoolClusterAddressProvider addressProvider)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Collection<TarantoolServerAddress> |
getAddresses()
Get server addresses to connect to.
|
areAddressesChanged, areConnectionsAlive, getConnection, refresh
public TarantoolClusterConnectionManager(TarantoolClientConfig config, TarantoolConnectionFactory connectionFactory, TarantoolConnectionListeners listeners, TarantoolClusterAddressProvider addressProvider)
config
- client configurationconnectionFactory
- manages instantiation of Tarantool server connectionslisteners
- are invoked after connection is establishedaddressProvider
- provides Tarantool server nodes addressesprotected Collection<TarantoolServerAddress> getAddresses()
AbstractTarantoolConnectionManager
ConnectionSelectionStrategy
instance.getAddresses
in class AbstractTarantoolConnectionManager
public void close()
close
in interface AutoCloseable
close
in class AbstractTarantoolConnectionManager
Copyright © 2025 Picodata. All rights reserved.