public abstract class AbstractTarantoolConnectionManager extends Object implements TarantoolConnectionManager
Constructor and Description |
---|
AbstractTarantoolConnectionManager(TarantoolClientConfig config,
TarantoolConnectionFactory connectionFactory,
TarantoolConnectionListeners connectionListeners)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
areAddressesChanged() |
protected boolean |
areConnectionsAlive() |
void |
close() |
protected abstract Collection<TarantoolServerAddress> |
getAddresses()
Get server addresses to connect to.
|
CompletableFuture<TarantoolConnection> |
getConnection()
Get an established connection according to the order provided by specified connection selection strategy.
|
boolean |
refresh()
Starts the process of establishing lacking connections to each host
|
public AbstractTarantoolConnectionManager(TarantoolClientConfig config, TarantoolConnectionFactory connectionFactory, TarantoolConnectionListeners connectionListeners)
config
- Tarantool client configconnectionFactory
- connection factoryconnectionListeners
- connection listenersprotected abstract Collection<TarantoolServerAddress> getAddresses()
ConnectionSelectionStrategy
instance.public CompletableFuture<TarantoolConnection> getConnection()
TarantoolConnectionManager
getConnection
in interface TarantoolConnectionManager
public boolean refresh()
TarantoolConnectionManager
refresh
in interface TarantoolConnectionManager
protected boolean areAddressesChanged()
protected boolean areConnectionsAlive()
public void close()
close
in interface AutoCloseable
Copyright © 2025 Picodata. All rights reserved.