protected void hook619(boolean updateGeneration) throws DatabaseException { if (latch.acquireNoWait()) { original(updateGeneration); } else { throw new ReturnBoolean(false); } }
/** Latch this node, optionally setting the generation. */ public void latch(boolean updateGeneration) throws DatabaseException { original(updateGeneration); latch.acquire(); }
/** @return true if this thread holds the IN's latch */ public boolean isLatchOwner() { return latch.isOwner(); }
/** Release the latch on this node. */ public void releaseLatchIfOwner() throws LatchNotHeldException { latch.releaseIfOwner(); }
/** Release the latch on this node. */ public void releaseLatch() throws LatchNotHeldException { latch.release(); }
/** @see LogReadable#readFromLog */ public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException { original(itemBuffer, entryTypeVersion); latch.setName(shortClassName() + getNodeId()); }