Package com.terracottatech.store.async
Interface AsyncReadRecordAccessor<K extends Comparable<K>>
- All Known Subinterfaces:
AsyncReadWriteRecordAccessor<K>
public interface AsyncReadRecordAccessor<K extends Comparable<K>>
An asynchronous equivalent to
ReadRecordAccessor.-
Method Summary
Modifier and TypeMethodDescriptionEquivalent toReadRecordAccessor.iff(Predicate), but returns an AsyncConditionalReadRecordAccessor rather than a ConditionalReadRecordAccessor.An asynchronous equivalent toReadRecordAccessor.read(Function).
-
Method Details
-
iff
Equivalent toReadRecordAccessor.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
An asynchronous equivalent toReadRecordAccessor.read(Function).An exception thrown from
mapperis propagated to the caller of thereadmethod.- 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.
-