Class ThreadUtils.ThreadIdPredicate
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.lang3.ThreadUtils.ThreadIdPredicate
- All Implemented Interfaces:
ThreadUtils.ThreadPredicate
- Enclosing class:
- ThreadUtils
public static class ThreadUtils.ThreadIdPredicate
extends Object
implements ThreadUtils.ThreadPredicate
A predicate implementation which matches a thread id.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ThreadIdPredicate
public ThreadIdPredicate(long threadId) Predicate constructor- Parameters:
threadId
- the threadId to match- Throws:
IllegalArgumentException
- if the threadId is zero or negative
-
-
Method Details
-
test
Description copied from interface:ThreadUtils.ThreadPredicate
Evaluates this predicate on the given thread.- Specified by:
test
in interfaceThreadUtils.ThreadPredicate
- Parameters:
thread
- the thread- Returns:
true
if the thread matches the predicate, otherwisefalse
-