Class Predicates.RolePredicate
java.lang.Object
com.oracle.coherence.concurrent.executor.function.Predicates.RolePredicate
- All Implemented Interfaces:
PortablePredicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
,PortableObject
,Remote.Predicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
,Serializable
,Predicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
- Enclosing class:
Predicates
public static class Predicates.RolePredicate
extends Object
implements PortablePredicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
A
Remote.Predicate
for matching the name of a Role
.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aPredicates.RolePredicate
(required for serialization).RolePredicate
(String sPattern) Constructs aPredicates.RolePredicate
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Restore the contents of a user type instance by reading its state using the specified PofReader object.boolean
test
(com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo executorInfo) void
writeExternal
(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.util.function.Remote.Predicate
and, negate, or
-
Field Details
-
m_sPattern
The pattern for matching aRole
name.
-
-
Constructor Details
-
RolePredicate
public RolePredicate()Constructs aPredicates.RolePredicate
(required for serialization). -
RolePredicate
Constructs aPredicates.RolePredicate
.- Parameters:
sPattern
- the pattern to match
-
-
Method Details
-
test
public boolean test(com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo executorInfo) -
readExternal
Description copied from interface:PortableObject
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternal
in interfacePortableObject
- Specified by:
readExternal
in interfacePortablePredicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
- Parameters:
in
- the PofReader from which to read the object's state- Throws:
IOException
- if an I/O error occurs
-
writeExternal
Description copied from interface:PortableObject
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternal
in interfacePortableObject
- Specified by:
writeExternal
in interfacePortablePredicate<com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo>
- Parameters:
out
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-