Class NoOpTransactionLockWatchingCacheView

    • Method Detail

      • readCached

        public Map<Cell,​byte[]> readCached​(TableReference tableRef,
                                                 Set<Cell> cells)
        Description copied from interface: TransactionLockWatchingCacheView
        Attempts to read the cached versions of cells. If there is no suitable cached value for the cell, it will not be present in the returned map.
        Specified by:
        readCached in interface TransactionLockWatchingCacheView
        Parameters:
        tableRef - table to read from
        cells - cells to read
        Returns:
        a mapping with all cells that were cached and guaranteed to be equal to what the transaction would have read from the kvs.
      • tryCacheNewValuesRead

        public void tryCacheNewValuesRead​(TableReference tableRef,
                                          Map<Cell,​byte[]> writes,
                                          com.palantir.lock.watch.LockWatchStateUpdate lwState)
        Description copied from interface: TransactionLockWatchingCacheView
        Try to cache values read from the kvs in this transaction. It is the responsibility of the underlying LockWatchingCache to arbitrate which, if any, values should be cached.
        Specified by:
        tryCacheNewValuesRead in interface TransactionLockWatchingCacheView
        Parameters:
        tableRef - table we read from
        writes - entries read from the KVS
        lwState - lock watch state when the view was created
      • tryCacheWrittenValues

        public void tryCacheWrittenValues​(TableReference tableRef,
                                          Map<Cell,​byte[]> writes,
                                          long lockTs)
        Description copied from interface: TransactionLockWatchingCacheView
        Try to cache values written to the kvs in this transaction. This method must be called only after the writing transaction has successfully committed. It is the responsibility of the underlying LockWatchingCache to arbitrate which, if any, values should be cached.
        Specified by:
        tryCacheWrittenValues in interface TransactionLockWatchingCacheView
        Parameters:
        tableRef - table we wrote to
        writes - entries written to the KVS
        lockTs - lock timestamp of the TimestampedLockResponse from acquiring locks