public void scanResponseTable() { Iterator<Entry<Integer, ResponseFuture>> it = this.responseTable.entrySet().iterator(); while (it.hasNext()) { Entry<Integer, ResponseFuture> next = it.next(); ResponseFuture rep = next.getValue(); if ((rep.getBeginTimestamp() + rep.getTimeoutMillis() + 1000) <= SystemClock.now()) { it.remove(); rep.release(); try { rep.executeInvokeCallback(); } catch (Exception e) { LOGGER.error("scanResponseTable, operationComplete exception", e); } LOGGER.warn("remove timeout request, " + rep); } } }
public void scanResponseTable() { Iterator<Entry<Integer, ResponseFuture>> it = this.responseTable.entrySet().iterator(); while (it.hasNext()) { Entry<Integer, ResponseFuture> next = it.next(); ResponseFuture rep = next.getValue(); if ((rep.getBeginTimestamp() + rep.getTimeoutMillis() + 1000) <= SystemClock.now()) { it.remove(); rep.release(); try { rep.executeInvokeCallback(); } catch (Exception e) { LOGGER.error("scanResponseTable, operationComplete exception", e); } LOGGER.warn("remove timeout request, " + rep); } } }
public void scanResponseTable() { Iterator<Entry<Integer, ResponseFuture>> it = this.responseTable.entrySet().iterator(); while (it.hasNext()) { Entry<Integer, ResponseFuture> next = it.next(); ResponseFuture rep = next.getValue(); if ((rep.getBeginTimestamp() + rep.getTimeoutMillis() + 1000) <= SystemClock.now()) { it.remove(); rep.release(); try { rep.executeInvokeCallback(); } catch (Exception e) { LOGGER.error("scanResponseTable, operationComplete exception", e); } LOGGER.warn("remove timeout request, " + rep); } } }