/** * Increments the value of the tail key by one. * * @throws CacheException */ private void incrementTailKey() throws CacheException { this.tailKey.set(inc(this.tailKey.get())); if (logger.isTraceEnabled()) { logger.trace("{}: Incremented TAIL_KEY for region {} to {}", this, this.region.getName(), this.tailKey); } }
this.currentKey = inc(ckey);
/** * Increments the value of the head key by one. * * @throws CacheException */ private void updateHeadKey(long destroyedKey) throws CacheException { this.headKey = inc(destroyedKey); if (logger.isTraceEnabled()) { logger.trace("{}: Incremented HEAD_KEY for region {} to {}", this, this.region.getName(), this.headKey); } }
this.currentKey = inc(ckey);
/** * Increments the value of the tail key by one. * * @throws CacheException */ private void incrementTailKey() throws CacheException { this.tailKey.set(inc(this.tailKey.get())); if (this.logger.finerEnabled()) { this.logger.finer(this + ": Incremented TAIL_KEY for region " + this.region.getName() + " to " + this.tailKey); } }
&& (smallestKeyGreaterThanHalfMax - largestKeyLessThanHalfMax) > MAXIMUM_KEY / 2) { this.headKey = smallestKeyGreaterThanHalfMax; this.tailKey.set(inc(largestKeyLessThanHalfMax)); logger.info(LocalizedMessage.create(LocalizedStrings.SingleWriteSingleReadRegionQueue_0_DURING_FAILOVER_DETECTED_THAT_KEYS_HAVE_WRAPPED, new Object[] { this, this.tailKey, Long.valueOf(this.headKey) })); } else { this.headKey = smallestKey == -1 ? 0 : smallestKey; this.tailKey.set(inc(largestKey));
/** * Increments the value of the head key by one. * * @throws CacheException */ private void updateHeadKey(long destroyedKey) throws CacheException { this.headKey = inc(destroyedKey); if (this.logger.finerEnabled()) { this.logger.finer(this + ": Incremented HEAD_KEY for region " + this.region.getName() + " to " + this.headKey); } }
logger.trace("{}: Trying head key + offset: {}", this, currentKey); currentKey = inc(currentKey); if (this.stats != null) { this.stats.incEventsNotQueuedConflated();
this.logger.finer(this + ": Trying head key + offset: " + currentKey); currentKey = inc(currentKey); if (this.stats != null) { this.stats.incEventsNotQueuedConflated();