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
.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VersionBucket.CheckedFunction<T,R>
-
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.
-
-
-
Method Detail
-
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)
-
-