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