public class TimedVersionBucket extends VersionBucket
lockTimeoutMs
.VersionBucket.CheckedFunction<T,R>
highest
Constructor and Description |
---|
TimedVersionBucket() |
Modifier and Type | Method and Description |
---|---|
void |
awaitNanos(long nanosTimeout) |
<T,R> R |
runWithLock(int lockTimeoutMs,
VersionBucket.CheckedFunction<T,R> function)
This will run the function with the lock.
|
void |
signalAll() |
protected boolean |
tryLock(int lockTimeoutMs) |
void |
unlock()
Nothing to do for the intrinsic object monitor.
|
updateHighest
public <T,R> R runWithLock(int lockTimeoutMs, VersionBucket.CheckedFunction<T,R> function) throws IOException
lockTimeoutMs
.runWithLock
in class VersionBucket
IOException
public void unlock()
VersionBucket
unlock
in class VersionBucket
public void signalAll()
signalAll
in class VersionBucket
public void awaitNanos(long nanosTimeout)
awaitNanos
in class VersionBucket
protected boolean tryLock(int lockTimeoutMs)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.