Interface AsyncReadRecordAccessor<K extends Comparable<K>>

All Known Subinterfaces:
AsyncReadWriteRecordAccessor<K>

public interface AsyncReadRecordAccessor<K extends Comparable<K>>
An asynchronous equivalent to ReadRecordAccessor.
  • Method Details

    • iff

      Equivalent to ReadRecordAccessor.iff(Predicate), but returns an AsyncConditionalReadRecordAccessor rather than a ConditionalReadRecordAccessor.
      Parameters:
      predicate - the predicate to apply to the record held against the key used to create this AsyncReadRecordAccessor.
      Returns:
      an AsyncConditionalReadRecordAccessor
    • read

      <T> Operation<Optional<T>> read(Function<? super Record<K>,T> mapper)
      An asynchronous equivalent to ReadRecordAccessor.read(Function).

      An exception thrown from mapper is propagated to the caller of the read method.

      Type Parameters:
      T - the type returned by the function defined in the mapper parameter.
      Parameters:
      mapper - the function to apply to the record.
      Returns:
      an operation representing the read.