private long putAndGetKey(Object object) throws CacheException { // Get the tail key Long key = Long.valueOf(getTailKey()); // Put the object into the region at that key this.region.put(key, (AsyncEvent)object); // Increment the tail key // It is important that we increment the tail // key after putting in the region, this is the // signal that a new object is available. incrementTailKey(); if (logger.isDebugEnabled()) { logger.debug("{}: Inserted {} -> {}",this, key, object); } if (object instanceof Conflatable) { removeOldEntry((Conflatable)object, key); } return key.longValue(); }
while (before(currentKey, getTailKey())
private long putAndGetKey(Object object) throws CacheException { // Get the tail key Long key = Long.valueOf(getTailKey()); // Put the object into the region at that key this.region.put(key, (AsyncEvent)object); // Increment the tail key // It is important that we increment the tail // key after putting in the region, this is the // signal that a new object is available. incrementTailKey(); if (this.logger.fineEnabled()) { this.logger.fine(this + ": Inserted " + key + "->" + object); } if (object instanceof Conflatable) { removeOldEntry((Conflatable)object, key); } return key.longValue(); }
while (before(currentKey, getTailKey())