/** * Adds entry address to LRU queue. * * @param part Entry Entry partition. * @param addr Entry address. * @param hash Entry hash code. * @return Queue node address. * @throws GridOffHeapOutOfMemoryException If failed. */ long offer(int part, long addr, int hash) throws GridOffHeapOutOfMemoryException { return lrus[incrementAndGet(addIdx, maxIdxCnt)].offer(part, addr, hash); }
/** * Adds entry address to LRU queue. * * @param part Entry Entry partition. * @param addr Entry address. * @param hash Entry hash code. * @return Queue node address. * @throws GridOffHeapOutOfMemoryException If failed. */ long offer(int part, long addr, int hash) throws GridOffHeapOutOfMemoryException { return lrus[incrementAndGet(addIdx, maxIdxCnt)].offer(part, addr, hash); }