com.sleepycat.je.rep.vlsn
Class VLSNIndex.VLSNAwaitLatch

java.lang.Object
  extended by java.util.concurrent.CountDownLatch
      extended by com.sleepycat.je.rep.vlsn.VLSNIndex.VLSNAwaitLatch
Enclosing class:
VLSNIndex

public static class VLSNIndex.VLSNAwaitLatch
extends CountDownLatch

Associates the logItem with the latch, so that it's readily available when the latch is released.


Constructor Summary
VLSNIndex.VLSNAwaitLatch()
           
 
Method Summary
 LogItem getLogItem()
          Returns the log item that caused the latch to be released.
 long getTriggerLSN()
           
 VLSN getTriggerVLSN()
           
 boolean isTerminated()
           
 void setLogItem(LogItem logItem)
           
 void terminate()
           
 
Methods inherited from class java.util.concurrent.CountDownLatch
await, await, countDown, getCount, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VLSNIndex.VLSNAwaitLatch

public VLSNIndex.VLSNAwaitLatch()
Method Detail

getTriggerLSN

public long getTriggerLSN()

getTriggerVLSN

public VLSN getTriggerVLSN()

setLogItem

public void setLogItem(LogItem logItem)

getLogItem

public LogItem getLogItem()
Returns the log item that caused the latch to be released. It's only meaningful after the latch has been released.

Returns:
log item or null if the latch timed out or it's wait was terminated

terminate

public void terminate()

isTerminated

public boolean isTerminated()


Copyright (c) 2004-2012 Oracle. All rights reserved.