/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
@Override void addToCountAtIndex(final int index, final long value) { counts.getAndAdd(index, value); }
@Override public void addResponseTime(String name, int priorityLevel, int queueTime, int processingTime) { responseTimeCountInCurrWindow.getAndIncrement(priorityLevel); responseTimeTotalInCurrWindow.getAndAdd(priorityLevel, queueTime+processingTime); if (LOG.isDebugEnabled()) { LOG.debug("addResponseTime for call: {} priority: {} queueTime: {} " + "processingTime: {} ", name, priorityLevel, queueTime, processingTime); } }
@Override protected void _incLong(int offset, long delta) { getThreadLongStorage().getAndAdd(offset, delta); setLongDirty(offset); }
long delta = ts.longStore.getAndSet(i, 0); if (delta != 0) { this.longStorage.getAndAdd(i, delta);
/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically increments by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndIncrement(int i) { return getAndAdd(i, 1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
/** * Atomically decrements by one the element at index {@code i}. * * @param i the index * @return the previous value */ public final long getAndDecrement(int i) { return getAndAdd(i, -1); }
@Override public void addResponseTime(String name, int priorityLevel, int queueTime, int processingTime) { responseTimeCountInCurrWindow.getAndIncrement(priorityLevel); responseTimeTotalInCurrWindow.getAndAdd(priorityLevel, queueTime+processingTime); if (LOG.isDebugEnabled()) { LOG.debug("addResponseTime for call: {} priority: {} queueTime: {} " + "processingTime: {} ", name, priorityLevel, queueTime, processingTime); } }
@Override protected final void _incLong(int offset, long delta) { getThreadLongStorage().getAndAdd(offset, delta); setLongDirty(offset); }