public class TxEventTestUtil
extends java.lang.Object
Constructor and Description |
---|
TxEventTestUtil() |
Modifier and Type | Method and Description |
---|---|
static <K,V> java.util.List<EntryEvent<K,V>> |
getCreateEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
Selects entry create events from a list of cache events.
|
static <K,V> java.util.List<EntryEvent<K,V>> |
getDestroyEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
Selects the entry destroy events from a list of cache events.
|
static <K,V> java.util.List<EntryEvent<K,V>> |
getEntryEventsMatching(java.util.List<CacheEvent<K,V>> cacheEvents,
java.util.function.Predicate<? super EntryEvent<K,V>> predicate)
Selects the entry events that match the given predicate.
|
static <K,V> java.util.List<EntryEvent<K,V>> |
getEntryEventsWithOperation(java.util.List<CacheEvent<K,V>> cacheEvents,
java.util.function.Predicate<Operation> operationPredicate)
Selects the entry events whose operation matches the given predicate.
|
static <K,V> java.util.List<EntryEvent<K,V>> |
getInvalidateEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
Selects the entry invalidate events from a list of cache events.
|
static <K,V> java.util.List<EntryEvent<K,V>> |
getPutEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
Selects the entry update events from a list of cache events.
|
public static <K,V> java.util.List<EntryEvent<K,V>> getCreateEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
public static <K,V> java.util.List<EntryEvent<K,V>> getPutEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
public static <K,V> java.util.List<EntryEvent<K,V>> getInvalidateEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
public static <K,V> java.util.List<EntryEvent<K,V>> getDestroyEvents(java.util.List<CacheEvent<K,V>> cacheEvents)
public static <K,V> java.util.List<EntryEvent<K,V>> getEntryEventsWithOperation(java.util.List<CacheEvent<K,V>> 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 <K,V> java.util.List<EntryEvent<K,V>> getEntryEventsMatching(java.util.List<CacheEvent<K,V>> cacheEvents, java.util.function.Predicate<? super EntryEvent<K,V>> 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