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 Summary
Nested Classes Modifier and Type Class Description static interfaceVersionBucket.CheckedFunction<T,R>
-
Field Summary
Fields Modifier and Type Field Description longhighest
-
Constructor Summary
Constructors Constructor Description VersionBucket()
-
Method Summary
All 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
-
updateHighest
public void updateHighest(long val)
-
runWithLock
public <T,R> R runWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function) throws IOExceptionThis will run the function with the intrinsic object monitor.- Throws:
IOException
-
unlock
public void unlock()
Nothing to do for the intrinsic object monitor.
-
signalAll
public void signalAll()
-
awaitNanos
public void awaitNanos(long nanosTimeout)
-
-