Class ThreadIDFilter
java.lang.Object
com.ibm.websphere.logging.hpel.reader.filters.ThreadIDFilter
- All Implemented Interfaces:
LogRecordHeaderFilter
Implementation of the
LogRecordHeaderFilter interface for filtering out
records not written by a thread with a given thread ID.-
Constructor Summary
ConstructorsConstructorDescriptionThreadIDFilter(int threadID) Creates a filter instance with a specified thread ID. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(RepositoryLogRecordHeader record) Checks if record should be accepted into the list.
-
Constructor Details
-
ThreadIDFilter
public ThreadIDFilter(int threadID) Creates a filter instance with a specified thread ID.- Parameters:
threadID- ID that each record's thread ID will be compared to
-
-
Method Details
-
accept
Description copied from interface:LogRecordHeaderFilterChecks if record should be accepted into the list.- Specified by:
acceptin interfaceLogRecordHeaderFilter- Parameters:
record- log record header to check- Returns:
trueif record should be included in the list;falseotherwise.
-