public final int incrementAndGet() { return indexUpdater.incrementAndGet(this) & Integer.MAX_VALUE; }
public final int incrementAndGet() { return indexUpdater.incrementAndGet(this) & Integer.MAX_VALUE; }
private void requestIntervalHistogramRecord(long nanoSpan) { long millis = nanoSpan / 1000 / 1000; if (millis < 1) { requestIntervalHistogram_0_1_Updater.incrementAndGet(this); } else if (millis < 10) { requestIntervalHistogram_1_10_Updater.incrementAndGet(this); } else if (millis < 100) { requestIntervalHistogram_10_100_Updater.incrementAndGet(this); } else if (millis < 1000) { requestIntervalHistogram_100_1000_Updater.incrementAndGet(this); } else if (millis < 10000) { requestIntervalHistogram_1000_10000_Updater.incrementAndGet(this); } else if (millis < 100000) { requestIntervalHistogram_10000_100000_Updater.incrementAndGet(this); } else if (millis < 1000000) { requestIntervalHistogram_100000_1000000_Updater.incrementAndGet(this); } else if (millis < 10000000) { requestIntervalHistogram_1000000_10000000_Updater.incrementAndGet(this); } else { requestIntervalHistogram_10000000_more_Updater.incrementAndGet(this); } }
public boolean incrementRetryAndCheck() { return maxRetry > 0 && CURRENT_RETRY_UPDATER.incrementAndGet(this) <= maxRetry; }
public int incrementAndGetCurrentRedirectCount() { return REDIRECT_COUNT_UPDATER.incrementAndGet(this); }
private void histogramRecord(long nanoSpan) { long millis = nanoSpan / 1000 / 1000; if (millis < 1) { histogram_0_1_Updater.incrementAndGet(this); } else if (millis < 10) { histogram_1_10_Updater.incrementAndGet(this); } else if (millis < 100) { histogram_10_100_Updater.incrementAndGet(this); } else if (millis < 1000) { histogram_100_1000_Updater.incrementAndGet(this); } else if (millis < 10000) { histogram_1000_10000_Updater.incrementAndGet(this); } else if (millis < 100000) { histogram_10000_100000_Updater.incrementAndGet(this); } else if (millis < 1000000) { histogram_100000_1000000_Updater.incrementAndGet(this); } else { histogram_1000000_more_Updater.incrementAndGet(this); } }
private void executeAndResultHoldTimeHistogramRecord(long nanoSpan) { long millis = nanoSpan / 1000 / 1000; if (millis < 1) { executeAndResultHoldTime_0_1_Updater.incrementAndGet(this); } else if (millis < 10) { executeAndResultHoldTime_1_10_Updater.incrementAndGet(this); } else if (millis < 100) { executeAndResultHoldTime_10_100_Updater.incrementAndGet(this); } else if (millis < 1000) { executeAndResultHoldTime_100_1000_Updater.incrementAndGet(this); } else if (millis < 10000) { executeAndResultHoldTime_1000_10000_Updater.incrementAndGet(this); } else if (millis < 100000) { executeAndResultHoldTime_10000_100000_Updater.incrementAndGet(this); } else if (millis < 1000000) { executeAndResultHoldTime_100000_1000000_Updater.incrementAndGet(this); } else { executeAndResultHoldTime_1000000_more_Updater.incrementAndGet(this); } }
private boolean pickNextRemoteAddress() { I_UPDATER.incrementAndGet(this); return i < remoteAddresses.size(); }
public void incrementRunningCount() { int val = runningCountUpdater.incrementAndGet(this); for (;;) { int max = concurrentMaxUpdater.get(this); if (val <= max) { break; } if (concurrentMaxUpdater.compareAndSet(this, max, val)) { break; } } }
protected void setCreateError(Throwable ex) { if (ex == null) { lock.lock(); try { if (createError != null) { createError = null; } } finally { lock.unlock(); } return; } createErrorCountUpdater.incrementAndGet(this); long now = System.currentTimeMillis(); lock.lock(); try { createError = ex; lastCreateError = ex; lastCreateErrorTimeMillis = now; } finally { lock.unlock(); } }
@Override public void onNext(Publisher<? extends I> value) { WIP_UPDATER.incrementAndGet(this); fanInAction.addPublisher(value); }
private void histogramRecord(long nanos) { final long millis = nanos / 1000 / 1000; if (millis < 1) { histogram_0_1_Updater.incrementAndGet(this); } else if (millis < 10) { histogram_1_10_Updater.incrementAndGet(this); } else if (millis < 100) { histogram_10_100_Updater.incrementAndGet(this); } else if (millis < 1000) { histogram_100_1000_Updater.incrementAndGet(this); } else if (millis < 10000) { histogram_1000_10000_Updater.incrementAndGet(this); } else if (millis < 100000) { histogram_10000_100000_Updater.incrementAndGet(this); } else if (millis < 1000000) { histogram_100000_1000000_Updater.incrementAndGet(this); } else { histogram_1000000_more_Updater.incrementAndGet(this); } }
private void histogramRecord(long nanos) { final long millis = nanos / 1000 / 1000; if (millis < 1) { histogram_0_1_Updater.incrementAndGet(this); } else if (millis < 10) { histogram_1_10_Updater.incrementAndGet(this); } else if (millis < 100) { histogram_10_100_Updater.incrementAndGet(this); } else if (millis < 1000) { histogram_100_1000_Updater.incrementAndGet(this); } else if (millis < 10000) { histogram_1000_10000_Updater.incrementAndGet(this); } else if (millis < 100000) { histogram_10000_100000_Updater.incrementAndGet(this); } else if (millis < 1000000) { histogram_100000_1000000_Updater.incrementAndGet(this); } else { histogram_1000000_more_Updater.incrementAndGet(this); } }
public void addUpdateDataCount(long delta) { updateDataCountUpdater.addAndGet(this, delta); if (delta < 1) { updateDataCount_0_1_Updater.incrementAndGet(this); } else if (delta < 10) { updateDataCount_1_10_Updater.incrementAndGet(this); } else if (delta < 100) { updateDataCount_10_100_Updater.incrementAndGet(this); } else if (delta < 1000) { updateDataCount_100_1000_Updater.incrementAndGet(this); } else if (delta < 10000) { updateDataCount_1000_10000_Updater.incrementAndGet(this); } else { updateDataCount_10000_more_Updater.incrementAndGet(this); } }
public void addFetchRowCount(long delta) { fetchRowCountUpdater.addAndGet(this, delta); if (delta < 1) { fetchRowCount_0_1_Updater.incrementAndGet(this); } else if (delta < 10) { fetchRowCount_1_10_Updater.incrementAndGet(this); } else if (delta < 100) { fetchRowCount_10_100_Updater.incrementAndGet(this); } else if (delta < 1000) { fetchRowCount_100_1000_Updater.incrementAndGet(this); } else if (delta < 10000) { fetchRowCount_1000_10000_Updater.incrementAndGet(this); } else { fetchRowCount_10000_more_Updater.incrementAndGet(this); } }
public void addDeleteDataCount(long delta) { deleteDataCountUpdater.addAndGet(this, delta); if (delta < 1) { deleteDataCount_0_1_Updater.incrementAndGet(this); } else if (delta < 10) { deleteDataCount_1_10_Updater.incrementAndGet(this); } else if (delta < 100) { deleteDataCount_10_100_Updater.incrementAndGet(this); } else if (delta < 1000) { deleteDataCount_100_1000_Updater.incrementAndGet(this); } else if (delta < 10000) { deleteDataCount_1000_10000_Updater.incrementAndGet(this); } else { deleteDataCount_10000_more_Updater.incrementAndGet(this); } }
@SuppressWarnings("unchecked") void setSubscription(FanInSubscription.InnerSubscription s) { this.s = s; this.sequenceId = outerAction.innerSubscriptions.addSubscription(this); if(outerAction.publishers == null){ FanInSubscription.RUNNING_COMPOSABLE_UPDATER.incrementAndGet(outerAction.innerSubscriptions); } long toRequest = outerAction.innerSubscriptions.pendingRequestSignals(); pendingRequests = toRequest != Long.MAX_VALUE ? toRequest / Math.max(outerAction.innerSubscriptions.runningComposables, 1) : Long.MAX_VALUE; if(pendingRequests == 0 && toRequest > 0){ pendingRequests = 1; } }
@Override public void subscribe(Subscriber<? super MapStream.Signal<K, V>> s) { CONSUMER_UPDATER.incrementAndGet(this); try { s.onSubscribe(new ChronicleSubscription(this, s)); }catch(Throwable t){ Exceptions.throwIfFatal(t); s.onError(t); } }
public void beforeInvoke() { currentLocal.set(this); int running = runningCountUpdater.incrementAndGet(this); for (;;) { int max = concurrentMaxUpdater.get(this); if (running > max) { if (concurrentMaxUpdater.compareAndSet(this, max, running)) { break; } } else { break; } } requestCountUpdater.incrementAndGet(this); WebRequestStat requestStat = WebRequestStat.current(); if (requestStat != null) { this.setLastAccessTimeMillis(requestStat.getStartMillis()); } }
public void beforeInvoke() { int running = runningCountUpdater.incrementAndGet(this); for (;;) { int max = concurrentMaxUpdater.get(this); if (running > max) { if (concurrentMaxUpdater.compareAndSet(this, max, running)) { break; } } else { break; } } incrementRequestCount(); WebRequestStat requestStat = WebRequestStat.current(); if (requestStat != null) { this.setLastAccessTimeMillis(requestStat.getStartMillis()); } }