Examples of TargetDisconnectedException


Examples of com.hazelcast.spi.exception.TargetDisconnectedException

    private class CleanResourcesTask implements Runnable {
        @Override
        public void run() {
            waitForPacketsProcessed();
            cleanResources(new TargetDisconnectedException(remoteEndpoint));
        }
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

                        long start = Clock.currentTimeMillis();
                        this.wait(Math.min(heartBeatInterval, waitMillis));
                        long elapsed = Clock.currentTimeMillis() - start;
                        waitMillis -= elapsed;
                        if (!isConnectionHealthy(elapsed)) {
                            notify(new TargetDisconnectedException());
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

    void heartBeatingFailed() {
        failedHeartBeat++;
        if (failedHeartBeat == connectionManager.maxFailedHeartbeatCount) {
            connectionManager.connectionMarkedAsNotResponsive(this);
            final Iterator<ClientCallFuture> iterator = eventHandlerMap.values().iterator();
            final TargetDisconnectedException response = new TargetDisconnectedException(remoteEndpoint);

            while (iterator.hasNext()) {
                final ClientCallFuture future = iterator.next();
                iterator.remove();
                future.notify(response);
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

    private class CleanResourcesTask implements Runnable {
        @Override
        public void run() {
            waitForPacketsProcessed();
            cleanResources(new TargetDisconnectedException(remoteEndpoint));
        }
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

                        long start = Clock.currentTimeMillis();
                        this.wait(Math.min(heartBeatInterval, waitMillis));
                        long elapsed = Clock.currentTimeMillis() - start;
                        waitMillis -= elapsed;
                        if (!isConnectionHealthy(elapsed)) {
                            notify(new TargetDisconnectedException());
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

        final RemoveAllListeners request = new RemoveAllListeners();
        invocationService.send(request, ClientConnection.this);
        heartBeating = false;
        connectionManager.onDetectingUnresponsiveConnection(this);
        final Iterator<ClientCallFuture> iterator = eventHandlerMap.values().iterator();
        final TargetDisconnectedException response = new TargetDisconnectedException(remoteEndpoint);

        while (iterator.hasNext()) {
            final ClientCallFuture future = iterator.next();
            iterator.remove();
            future.notify(response);
View Full Code Here

Examples of com.hazelcast.spi.exception.TargetDisconnectedException

    private class CleanResourcesTask implements Runnable {
        @Override
        public void run() {
            waitForPacketsProcessed();
            cleanResources(new TargetDisconnectedException(remoteEndpoint));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.