public class TxEventTestUtil
extends java.lang.Object
Constructor and Description |
---|
TxEventTestUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<EntryEvent<?,?>> |
getCreateEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
Selects entry create events from a list of cache events.
|
static java.util.List<EntryEvent<?,?>> |
getDestroyEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
Selects the entry destroy events from a list of cache events.
|
static java.util.List<EntryEvent<?,?>> |
getEntryEventsMatching(java.util.List<CacheEvent<?,?>> cacheEvents,
java.util.function.Predicate<? super EntryEvent<?,?>> predicate)
Selects the entry events that match the given predicate.
|
static java.util.List<EntryEvent<?,?>> |
getEntryEventsWithOperation(java.util.List<CacheEvent<?,?>> cacheEvents,
java.util.function.Predicate<Operation> operationPredicate)
Selects the entry events whose operation matches the given predicate.
|
static java.util.List<EntryEvent<?,?>> |
getInvalidateEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
Selects the entry invalidate events from a list of cache events.
|
static java.util.List<EntryEvent<?,?>> |
getPutEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
Selects the entry update events from a list of cache events.
|
public static java.util.List<EntryEvent<?,?>> getCreateEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
public static java.util.List<EntryEvent<?,?>> getPutEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
public static java.util.List<EntryEvent<?,?>> getInvalidateEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
public static java.util.List<EntryEvent<?,?>> getDestroyEvents(java.util.List<CacheEvent<?,?>> cacheEvents)
public static java.util.List<EntryEvent<?,?>> getEntryEventsWithOperation(java.util.List<CacheEvent<?,?>> cacheEvents, java.util.function.Predicate<Operation> operationPredicate)
cacheEvents
- the cache events from which to select entry eventsoperationPredicate
- tests each event's operation to determine whether to include the
eventjava.lang.ClassCastException
- if the predicate matches the operation of an event that is not an
EntryEvent
public static java.util.List<EntryEvent<?,?>> getEntryEventsMatching(java.util.List<CacheEvent<?,?>> cacheEvents, java.util.function.Predicate<? super EntryEvent<?,?>> predicate)
cacheEvents
- the cache events from which to select entry eventspredicate
- tests whether to include each eventjava.lang.ClassCastException
- if the predicate matches an event that is not an EntryEvent