Package com.logviewer.utils
Class TestPredicate
java.lang.Object
com.logviewer.utils.TestPredicate
- All Implemented Interfaces:
RecordPredicate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()static voidstatic Objectstatic Objectstatic Objectbooleantest(LogRecord record, LogFilterContext ctx) static booleanstatic voidwaitForLocked(String line) static voidwaitForLocked(Predicate<LogRecord> predicate) static voidwaitForRecord(String record) static voidstatic booleanwasProcessed(String record) static booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logviewer.filters.RecordPredicate
not
-
Field Details
-
WAIT_TIMEOUT
public static final long WAIT_TIMEOUT
-
-
Constructor Details
-
TestPredicate
public TestPredicate()
-
-
Method Details
-
handle
-
test
- Specified by:
testin interfaceRecordPredicate
-
wasProcessed
-
wasProcessed
-
getPassed
-
waitForRecord
- Throws:
InterruptedException
-
waitForRecord
- Throws:
InterruptedException
-
lock
-
lock
-
lock
-
unlock
-
waitForLocked
- Throws:
InterruptedException
-
waitForLocked
- Throws:
InterruptedException
-
clear
public static void clear()
-