Class LirsTraceWriter
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.parser.TextTraceWriter
-
- com.github.benmanes.caffeine.cache.simulator.parser.lirs.LirsTraceWriter
-
- All Implemented Interfaces:
TraceWriter,Closeable,AutoCloseable
public final class LirsTraceWriter extends TextTraceWriter
A writer for the trace format used by the authors of the LIRS algorithm.
-
-
Constructor Summary
Constructors Constructor Description LirsTraceWriter(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteEvent(int tick, AccessEvent event)Writes the event in the trace format.-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.TextTraceWriter
close, writer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceWriter
writeFooter, writeHeader
-
-
-
-
Constructor Detail
-
LirsTraceWriter
public LirsTraceWriter(OutputStream output)
-
-
Method Detail
-
writeEvent
public void writeEvent(int tick, AccessEvent event) throws IOExceptionDescription copied from interface:TraceWriterWrites the event in the trace format.- Throws:
IOException
-
-