@Override public void onThrowable(Throwable t) { times[1] = unpreciseMillisTime(); super.onThrowable(t); } });
@Override public State onBodyPartReceived(HttpResponseBodyPart content) throws Exception { length += content.length(); if (length > responseSizeLimit) { log.warn("Response from webhook is too big for {}. Skipping. Size : {}", email, length); return State.ABORT; } return super.onBodyPartReceived(content); }
@Override public final T onCompleted() throws Exception { return onCompleted(builder.build()); }
@Override public AsyncHandler.State onContentWriteProgress(long amount, long current, long total) { AsyncHttpDeferredObject.this.notify(new ContentWriteProgress(amount, current, total)); return super.onContentWriteProgress(amount, current, total); }
@Override public void onThrowable(final Throwable t) { super.onThrowable(t); } });
@Override public AsyncHandler.State onBodyPartReceived(HttpResponseBodyPart content) throws Exception { AsyncHttpDeferredObject.this.notify(new HttpResponseBodyPartProgress(content)); return super.onBodyPartReceived(content); } });
/** * {@inheritDoc} */ public final T onCompleted() throws Exception { return onCompleted(builder.build()); }
@Override public void onThrowable(final Throwable t) { future.completeExceptionally(t); super.onThrowable(t); } }
@Override public State onBodyPartReceived(HttpResponseBodyPart content) throws Exception { times[0] = unpreciseMillisTime(); return super.onBodyPartReceived(content); }
@Override public void onThrowable(final Throwable t) { future.completeExceptionally(t); super.onThrowable(t); } }
@Override public void onThrowable(final Throwable t) { future.completeExceptionally(t); super.onThrowable(t); } }
@Override public void onThrowable(final Throwable t) { LOGGER.info("Failed to add Kibana visualization " + id + " to " + elasticSearchInstance + ". Error: " + t.getMessage()); requestMonitor.completed(); super.onThrowable(t); } });
@Override public void onThrowable(final Throwable t) { LOGGER.info("Failed to add default Kibana Index Template to " + elasticSearchInstance + ". Error: " + t.getMessage()); requestMonitor.completed(); super.onThrowable(t); } });
@Override public void onThrowable(Throwable t) { if (t instanceof IOException) { throw new ZendeskException(t); } else { super.onThrowable(t); } } }
@Override public void onThrowable(final Throwable t) { LOGGER.info("Fail to add Elasticsearch template to " + elasticSearchInstance + ". Error: " + t.getMessage()); requestMonitor.completed(); super.onThrowable(t); } })
@Override public void onThrowable(final Throwable t) { LOGGER.info("Failed to add Kibana dashboard " + id + " to " + elasticSearchInstance + ". Error: " + t.getMessage()); requestMonitor.completed(); super.onThrowable(t); } });