private void handleAuthenticationFailure() { Exception exception; if (nodeEngine.isActive()) { String message = "Client " + endpoint + " must authenticate before any operation."; logger.severe(message); exception = new AuthenticationException(message); } else { exception = new HazelcastInstanceNotActiveException(); } sendClientMessage(exception); endpointManager.removeEndpoint(endpoint); }
protected ClientEndpoint getEndpoint() { return endpointManager.getEndpoint(connection); }