public interface GridClientConnectionManager
| Modifier and Type | Method and Description |
|---|---|
GridClientConnection |
connection(GridClientNode node)
Returns connection to the given node.
|
void |
init(Collection<InetSocketAddress> srvs)
Tries to open initial connection and fetch topology using given server addresses.
|
void |
stop(boolean waitCompletion)
Stops this instance of connection manager and terminates all connections.
|
void |
terminateConnection(GridClientConnection conn,
GridClientNode node,
Throwable e)
Callback method, which should be called by clients when they get connectivity errors.
|
void init(Collection<InetSocketAddress> srvs) throws GridClientException, InterruptedException
srvs - CollectionGridClientAuthenticationException - If connection failed to authenticate on server.GridClientException - If manager failed to initialise,InterruptedException - If manager was interrupted while waiting for connection.GridClientConnection connection(GridClientNode node) throws GridServerUnreachableException, GridClientClosedException, InterruptedException
node - Node to connect with.GridServerUnreachableException - If connection can't be established.InterruptedException - If manager was interrupted while waiting for connection
to be established.GridClientClosedException - If connection manager has been closed.void terminateConnection(GridClientConnection conn, @Nullable GridClientNode node, Throwable e)
connection(GridClientNode) calls.conn - Failed connection.node - Connected node.e - Error that caused connection termination.void stop(boolean waitCompletion)
waitCompletion - If true this method awaits termination of all connections
(and receiving responses for all pending requests), otherwise it will return immediately.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016