Interface ReadOperation<T>

Type Parameters:
T - type of the value that is read and returned by this read operation
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReadOperation<T>
Function performing a read operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes a read operation, and returns the read value.
  • Method Details

    • run

      T run(ReadableTransaction txn) throws Exception
      Executes a read operation, and returns the read value.
      Parameters:
      txn - the read transaction where to execute the read operation
      Returns:
      the read value
      Throws:
      Exception - if a problem occurs with the underlying storage engine