@Override public ConnectionErrorException getException(String message) { return new ConnectionErrorException(message); }
@Override public ConnectionErrorException getException(String message, Throwable cause) { return new ConnectionErrorException(message, cause); }
return new ConnectionCloseException(message); case CONNECTION_ERROR: return new ConnectionErrorException(message); case INVALID: return new InvalidException(message);
String message = String.format("No keep-alive acks for %d ms", keepAlive.getTimeoutMillis()); errorConsumer.accept(new ConnectionErrorException(message)); connection.dispose(); });
String message = String.format("No keep-alive acks for %d ms", keepAlive.getTimeoutMillis()); ConnectionErrorException err = new ConnectionErrorException(message); lifecycle.setTerminationError(err); errorConsumer.accept(err);
return new ConnectionCloseException(message); case CONNECTION_ERROR: return new ConnectionErrorException(message); case INVALID: return new InvalidException(message);
String message = String.format("No keep-alive acks for %d ms", keepAlive.getTimeoutMillis()); errorConsumer.accept(new ConnectionErrorException(message)); connection.dispose(); });
String message = String.format("No keep-alive acks for %d ms", keepAlive.getTimeoutMillis()); ConnectionErrorException err = new ConnectionErrorException(message); lifecycle.setTerminationError(err); errorConsumer.accept(err);