long offer(int part,long addr,int hash) throws GridOffHeapOutOfMemoryException {
  lock.lock();
  try {
    long qAddr=mem.allocateSystem(NODE,false);
    if (head == 0)     head=qAddr;
    long prev=tail;
    tail=qAddr;
    if (prev != 0)     next(prev,qAddr);
    order(qAddr);
    partition(qAddr,part);
    polling(qAddr,false);
    hash(qAddr,hash);
    entry(qAddr,addr);
    previous(qAddr,prev);
    next(qAddr,0L);
    size++;
    return qAddr;
  }
  finally {
    lock.unlock();
  }
}

long offer ( int part , long addr , int hash ) throws GridOffHeapOutOfMemoryException { lock . lock ( ) ; try { long qAddr = mem . allocateSystem ( NODE , false ) ; if ( head == 0 ) head = qAddr ; long prev = tail ; tail = qAddr ; if ( prev != 0 ) next ( prev , qAddr ) ; order ( qAddr ) ; partition ( qAddr , part ) ; polling ( qAddr , false ) ; hash ( qAddr , hash ) ; entry ( qAddr , addr ) ; previous ( qAddr , prev ) ; next ( qAddr , 0L ) ; size ++ ; return qAddr ; } finally { lock . unlock ( ) ; } }
adds entry address to lru queue .
