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 interface
VersionBucket.CheckedFunction<T,R>
-
Field Summary
Fields Modifier and Type Field Description long
highest
-
Constructor Summary
Constructors Constructor Description VersionBucket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
awaitNanos(long nanosTimeout)
<T,R>
RrunWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function)
This will run the function with the intrinsic object monitor.void
signalAll()
void
unlock()
Nothing to do for the intrinsic object monitor.void
updateHighest(long val)
-
-
-
Method Detail
-
updateHighest
public void updateHighest(long val)
-
runWithLock
public <T,R> R runWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function) throws IOException
This 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)
-
-