@Override public void run() { try { invoke(); } catch (Throwable e) { clientInvocationFuture.complete(e); } }
public void notifyException(Throwable exception) { if (!lifecycleService.isRunning()) { clientInvocationFuture.complete( new HazelcastClientNotActiveException(exception.getMessage(), exception)); return; } if (isRetryable(exception)) { if (handleRetry()) { return; } } if (exception instanceof RetryableHazelcastException) { if (clientMessage.isRetryable() || invocationService.isRedoOperation()) { if (handleRetry()) { return; } } } clientInvocationFuture.complete(exception); }
public void notify(ClientMessage clientMessage) { if (clientMessage == null) { throw new IllegalArgumentException("response can't be null"); } clientInvocationFuture.complete(clientMessage); }