Class Predicates.RolePredicate
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.function.Predicates.RolePredicate
-
- All Implemented Interfaces:
PortablePredicate<TaskExecutorService.ExecutorInfo>,com.tangosol.io.pof.PortableObject,com.tangosol.util.function.Remote.Predicate<TaskExecutorService.ExecutorInfo>,Serializable,Predicate<TaskExecutorService.ExecutorInfo>
- Enclosing class:
- Predicates
public static class Predicates.RolePredicate extends Object implements PortablePredicate<TaskExecutorService.ExecutorInfo>
ARemote.Predicatefor matching the name of aRole.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_sPatternThe pattern for matching aRolename.
-
Constructor Summary
Constructors Constructor Description RolePredicate()Constructs aPredicates.RolePredicate(required for serialization).RolePredicate(String sPattern)Constructs aPredicates.RolePredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(com.tangosol.io.pof.PofReader in)booleantest(TaskExecutorService.ExecutorInfo executorInfo)voidwriteExternal(com.tangosol.io.pof.PofWriter out)
-
-
-
Constructor Detail
-
RolePredicate
public RolePredicate()
Constructs aPredicates.RolePredicate(required for serialization).
-
RolePredicate
public RolePredicate(String sPattern)
Constructs aPredicates.RolePredicate.- Parameters:
sPattern- the pattern to match
-
-
Method Detail
-
test
public boolean test(TaskExecutorService.ExecutorInfo executorInfo)
- Specified by:
testin interfacePredicate<TaskExecutorService.ExecutorInfo>
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Specified by:
readExternalin interfacePortablePredicate<TaskExecutorService.ExecutorInfo>- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Specified by:
writeExternalin interfacePortablePredicate<TaskExecutorService.ExecutorInfo>- Throws:
IOException
-
-