Package org.apache.solr.update
Class VersionBucket
- java.lang.Object
- 
- org.apache.solr.update.VersionBucket
 
- 
- Direct Known Subclasses:
- TimedVersionBucket
 
 public class VersionBucket extends Object The default implementation which uses the intrinsic object monitor. It uses less memory but ignores thelockTimeoutMs.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceVersionBucket.CheckedFunction<T,R>
 - 
Field SummaryFields Modifier and Type Field Description longhighest
 - 
Constructor SummaryConstructors Constructor Description VersionBucket()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitNanos(long nanosTimeout)<T,R>
 RrunWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function)This will run the function with the intrinsic object monitor.voidsignalAll()voidunlock()Nothing to do for the intrinsic object monitor.voidupdateHighest(long val)
 
- 
- 
- 
Method Detail- 
updateHighestpublic void updateHighest(long val) 
 - 
runWithLockpublic <T,R> R runWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function) throws IOExceptionThis will run the function with the intrinsic object monitor.- Throws:
- IOException
 
 - 
unlockpublic void unlock() Nothing to do for the intrinsic object monitor.
 - 
signalAllpublic void signalAll() 
 - 
awaitNanospublic void awaitNanos(long nanosTimeout) 
 
- 
 
-