Package com.logviewer.data2
Class Log.LogSnapshot
java.lang.Object
com.logviewer.data2.Log.LogSnapshot
- All Implemented Interfaces:
Snapshot,AutoCloseable
- Enclosing class:
- Log
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()getError()getHash()longgetLog()longgetSize()booleanisValidHash(String hash) booleanprocessFromTime(long timestampNanos, Predicate<LogRecord> consumer) booleanprocessFromTimeBack(long timestampNanos, Predicate<LogRecord> consumer) booleanprocessRecords(long position, boolean fromNextLine, Predicate<LogRecord> consumer) booleanprocessRecordsBack(long position, boolean fromPrevLine, Predicate<LogRecord> consumer) Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logviewer.data2.Snapshot
processRecords
-
Method Details
-
getSize
public long getSize() -
getLastModification
public long getLastModification()- Specified by:
getLastModificationin interfaceSnapshot
-
processRecordsBack
public boolean processRecordsBack(long position, boolean fromPrevLine, Predicate<LogRecord> consumer) throws IOException - Specified by:
processRecordsBackin interfaceSnapshot- Throws:
IOException
-
processRecords
public boolean processRecords(long position, boolean fromNextLine, Predicate<LogRecord> consumer) throws IOException - Specified by:
processRecordsin interfaceSnapshot- Throws:
IOException
-
processFromTimeBack
public boolean processFromTimeBack(long timestampNanos, Predicate<LogRecord> consumer) throws IOException - Specified by:
processFromTimeBackin interfaceSnapshot- Throws:
IOException
-
processFromTime
public boolean processFromTime(long timestampNanos, Predicate<LogRecord> consumer) throws IOException - Specified by:
processFromTimein interfaceSnapshot- Throws:
IOException
-
getError
-
getLog
-
isValidHash
- Specified by:
isValidHashin interfaceSnapshot
-
getHash
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSnapshot
-
finalize
protected void finalize()
-