public void cancelTimeouts() { TimeoutsHolder ref = TIMEOUTS_HOLDER_FIELD.getAndSet(this, null); if (ref != null) { ref.cancel(); } }
public void run(Timeout timeout) { if (done.getAndSet(true) || requestSender.isClosed()) return; // in any case, cancel possible readTimeout sibling timeoutsHolder.cancel(); if (nettyResponseFuture.isDone()) return; StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder().append("Request timeout to "); appendRemoteAddress(sb); String message = sb.append(" after ").append(requestTimeout).append(" ms").toString(); long age = unpreciseMillisTime() - nettyResponseFuture.getStart(); expire(message, age); } }
public void cancelTimeouts() { if (timeoutsHolder != null) { timeoutsHolder.cancel(); timeoutsHolder = null; } }
public void cancelTimeouts() { if (timeoutsHolder != null) { timeoutsHolder.cancel(); timeoutsHolder = null; } }
public void cancelTimeouts() { if (timeoutsHolder != null) { timeoutsHolder.cancel(); timeoutsHolder = null; } }
public void cancelTimeouts() { if (timeoutsHolder != null) { timeoutsHolder.cancel(); timeoutsHolder = null; } }
public void run(Timeout timeout) throws Exception { if (done.getAndSet(true) || requestSender.isClosed()) return; // in any case, cancel possible readTimeout sibling timeoutsHolder.cancel(); if (nettyResponseFuture.isDone()) return; String message = "Request timed out to " + remoteAddress + " of " + requestTimeout + " ms"; long age = millisTime() - nettyResponseFuture.getStart(); expire(message, age); } }
public void run(Timeout timeout) throws Exception { if (done.getAndSet(true) || requestSender.isClosed()) return; // in any case, cancel possible readTimeout sibling timeoutsHolder.cancel(); if (nettyResponseFuture.isDone()) return; String message = "Request timed out to " + remoteAddress + " of " + requestTimeout + " ms"; long age = millisTime() - nettyResponseFuture.getStart(); expire(message, age); } }
public void run(Timeout timeout) throws Exception { if (done.getAndSet(true) || requestSender.isClosed()) return; // in any case, cancel possible readTimeout sibling timeoutsHolder.cancel(); if (nettyResponseFuture.isDone()) return; String message = "Request timed out to " + remoteAddress + " of " + requestTimeout + " ms"; long age = millisTime() - nettyResponseFuture.getStart(); expire(message, age); } }
public void run(Timeout timeout) throws Exception { if (done.getAndSet(true) || requestSender.isClosed()) return; // in any case, cancel possible readTimeout sibling timeoutsHolder.cancel(); if (nettyResponseFuture.isDone()) return; String message = "Request timed out to " + remoteAddress + " of " + requestTimeout + " ms"; long age = millisTime() - nettyResponseFuture.getStart(); expire(message, age); } }