Class NoOpLockWatchManager
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.api.watch.LockWatchManager
-
- com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal
-
- com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager
-
- All Implemented Interfaces:
AutoCloseable
public final class NoOpLockWatchManager extends LockWatchManagerInternal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static LockWatchManagerInternal
create()
com.palantir.lock.watch.LockWatchCache
getCache()
TransactionScopedCache
getReadOnlyTransactionScopedCache(long startTs)
TransactionScopedCache
getTransactionScopedCache(long startTs)
void
onTransactionCommit(long startTs)
void
registerPreciselyWatches(Set<com.palantir.lock.watch.LockWatchReferences.LockWatchReference> lockWatchReferences)
Registers precisely a set of lock watches.void
removeTransactionStateFromCache(long startTs)
-
-
-
Method Detail
-
create
public static LockWatchManagerInternal create()
-
registerPreciselyWatches
public void registerPreciselyWatches(Set<com.palantir.lock.watch.LockWatchReferences.LockWatchReference> lockWatchReferences)
Description copied from class:LockWatchManager
Registers precisely a set of lock watches. Lock watches registered on a previous invocation of this method will not be remembered.- Specified by:
registerPreciselyWatches
in classLockWatchManager
-
getCache
public com.palantir.lock.watch.LockWatchCache getCache()
- Specified by:
getCache
in classLockWatchManagerInternal
-
removeTransactionStateFromCache
public void removeTransactionStateFromCache(long startTs)
- Specified by:
removeTransactionStateFromCache
in classLockWatchManagerInternal
-
onTransactionCommit
public void onTransactionCommit(long startTs)
- Specified by:
onTransactionCommit
in classLockWatchManagerInternal
-
getTransactionScopedCache
public TransactionScopedCache getTransactionScopedCache(long startTs)
- Specified by:
getTransactionScopedCache
in classLockWatchManagerInternal
-
getReadOnlyTransactionScopedCache
public TransactionScopedCache getReadOnlyTransactionScopedCache(long startTs)
- Specified by:
getReadOnlyTransactionScopedCache
in classLockWatchManagerInternal
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classLockWatchManagerInternal
-
-