Examples of lastReadTime()


Examples of com.hazelcast.nio.Connection.lastReadTime()

            addMemberInfo(memberInfo, addressIndexes, memberIndex);
            if (!member.localMember()) {
                 Connection conn = connections.get(memberImpl.getAddress());
                ConnectionInfo connectionInfo;
                if (conn != null) {
                    connectionInfo = new ConnectionInfo(memberIndex, conn.live(), conn.lastReadTime(), conn.lastWriteTime());
                } else {
                    connectionInfo = new ConnectionInfo(memberIndex, false, 0L, 0L);
                }
                connectionInfos.add(connectionInfo);
            } else {
View Full Code Here

Examples of com.hazelcast.nio.Connection.lastReadTime()

        for (ClientEndpoint clientEndpoint : clientEndpointManager.getEndpoints()) {
            if (clientEndpoint.isFirstConnection()) {
                continue;
            }
            final Connection connection = clientEndpoint.getConnection();
            final long lastTimePackageReceived = connection.lastReadTime();
            final long timeoutInMillis = TimeUnit.SECONDS.toMillis(heartbeatTimeoutSeconds);
            final long currentTimeInMillis = Clock.currentTimeMillis();
            if (lastTimePackageReceived + timeoutInMillis < currentTimeInMillis) {
                if (memberUuid.equals(clientEndpoint.getPrincipal().getOwnerUuid())) {
                    logger.log(Level.WARNING, "Client heartbeat is timed out , closing connection to " + connection);
View Full Code Here

Examples of com.hazelcast.nio.Connection.lastReadTime()

        if (clientEndpoint.isFirstConnection()) {
            return;
        }

        final Connection connection = clientEndpoint.getConnection();
        final long lastTimePackageReceived = connection.lastReadTime();
        final long timeoutInMillis = TimeUnit.SECONDS.toMillis(heartbeatTimeoutSeconds);
        final long currentTimeInMillis = Clock.currentTimeMillis();
        if (lastTimePackageReceived + timeoutInMillis < currentTimeInMillis) {
            if (memberUuid.equals(clientEndpoint.getPrincipal().getOwnerUuid())) {
                logger.log(Level.WARNING, "Client heartbeat is timed out , closing connection to " + connection);
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.