use of org.apache.ignite.internal.util.nio.GridCommunicationClient in project ignite by apache.
the class TcpCommunicationSpi method onContextDestroyed0.
/** {@inheritDoc} */
@Override
protected void onContextDestroyed0() {
stopping = true;
if (ctxInitLatch.getCount() > 0)
// Safety.
ctxInitLatch.countDown();
if (connectGate != null)
connectGate.stopped();
// Force closing.
for (GridCommunicationClient[] clients0 : clients.values()) {
for (GridCommunicationClient client : clients0) {
if (client != null)
client.forceClose();
}
}
getSpiContext().deregisterPorts();
getSpiContext().removeLocalEventListener(discoLsnr);
}
Aggregations