Interface TraceReader.KeyOnlyTraceReader
-
- All Superinterfaces:
TraceReader
- All Known Implementing Classes:
AddressTraceReader,ArcTraceReader,CamelabTraceReader,GradleTraceReader,K5cloudTraceReader,LirsTraceReader,OutbrainTraceReader,StorageTraceReader,TencentBlockTraceReader,WikipediaTraceReader,YoutubeTraceReader
- Enclosing interface:
- TraceReader
public static interface TraceReader.KeyOnlyTraceReader extends TraceReader
A trace reader that that does not contain external event metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceReader
TraceReader.KeyOnlyTraceReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<Policy.Characteristic>characteristics()The event features that this trace supports.default Stream<AccessEvent>events()Creates a stream that lazily reads the trace source.LongStreamkeys()
-
-
-
Method Detail
-
characteristics
default Set<Policy.Characteristic> characteristics()
Description copied from interface:TraceReaderThe event features that this trace supports.- Specified by:
characteristicsin interfaceTraceReader
-
events
default Stream<AccessEvent> events()
Description copied from interface:TraceReaderCreates a stream that lazily reads the trace source.If timely disposal of underlying resources is required, the try-with-resources construct should be used to ensure that the stream's
closemethod is invoked after the stream operations are completed.- Specified by:
eventsin interfaceTraceReader- Returns:
- a lazy stream of cache events
-
keys
LongStream keys()
-
-