Package org.infinispan.globalstate
Class ScopeFilter
- java.lang.Object
-
- org.infinispan.globalstate.ScopeFilter
-
- All Implemented Interfaces:
Predicate<ScopedState>
,KeyFilter<ScopedState>
public class ScopeFilter extends Object implements KeyFilter<ScopedState>, Predicate<ScopedState>
A filter forScopedState
that allows listeners of the global state cache to choose events by scope.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScopeFilter.Externalizer
-
Field Summary
-
Fields inherited from interface org.infinispan.filter.KeyFilter
ACCEPT_ALL_FILTER
-
-
Constructor Summary
Constructors Constructor Description ScopeFilter(String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(ScopedState key)
boolean
test(ScopedState key)
-
-
-
Constructor Detail
-
ScopeFilter
public ScopeFilter(String scope)
-
-
Method Detail
-
accept
public boolean accept(ScopedState key)
- Specified by:
accept
in interfaceKeyFilter<ScopedState>
- Parameters:
key
- key to test- Returns:
- true if the given key is accepted by this filter.
-
test
public boolean test(ScopedState key)
- Specified by:
test
in interfaceKeyFilter<ScopedState>
- Specified by:
test
in interfacePredicate<ScopedState>
-
-