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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
run(ReadableTransaction txn)
Executes a read operation, and returns the read value.
-
-
-
Method Detail
-
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
-
-