Package com.hazelcast.cluster.client

Examples of com.hazelcast.cluster.client.ClientPingRequest


            case ClientPortableHook.LISTENER:
                return new DistributedObjectListenerRequest();
            case ClientPortableHook.MEMBERSHIP_LISTENER:
                return new AddMembershipListenerRequest();
            case ClientPortableHook.CLIENT_PING:
                return new ClientPingRequest();
            case ClientPortableHook.GET_PARTITIONS:
                return new GetPartitionsRequest();
            case ClientPortableHook.REMOVE_LISTENER:
                return new RemoveDistributedObjectListenerRequest();
            default:
View Full Code Here


                break;
            case ClientPortableHook.MEMBERSHIP_LISTENER:
                portable = new AddMembershipListenerRequest();
                break;
            case ClientPortableHook.CLIENT_PING:
                portable = new ClientPingRequest();
                break;
            case ClientPortableHook.GET_PARTITIONS:
                portable = new GetPartitionsRequest();
                break;
            case ClientPortableHook.REMOVE_LISTENER:
View Full Code Here

            }
            begin = Clock.currentTimeMillis();
            final Map<ClientConnection, Future> futureMap = new HashMap<ClientConnection, Future>();
            for (ClientConnection connection : connections.values()) {
                if (begin - connection.lastReadTime() > heartBeatTimeout) {
                    final ClientPingRequest request = new ClientPingRequest();
                    final ICompletableFuture future = invocationService.send(request, connection);
                    futureMap.put(connection, future);
                } else {
                    connection.heartBeatingSucceed();
                }
View Full Code Here

                break;
            case ClientPortableHook.MEMBERSHIP_LISTENER:
                portable = new AddMembershipListenerRequest();
                break;
            case ClientPortableHook.CLIENT_PING:
                portable = new ClientPingRequest();
                break;
            case ClientPortableHook.GET_PARTITIONS:
                portable = new GetPartitionsRequest();
                break;
            case ClientPortableHook.REMOVE_LISTENER:
View Full Code Here

            for (ClientConnection connection : connections.values()) {
                if (now - connection.lastReadTime() > heartBeatTimeout) {
                    connection.heartBeatingFailed();
                }
                if (now - connection.lastReadTime() > heartBeatInterval) {
                    final ClientPingRequest request = new ClientPingRequest();
                    invocationService.send(request, connection);
                } else {
                    connection.heartBeatingSucceed();
                }
            }
View Full Code Here

TOP

Related Classes of com.hazelcast.cluster.client.ClientPingRequest

Copyright © 2018 www.massapicom. 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.