Class Invalidator
- java.lang.Object
-
- com.evolveum.midpoint.repo.cache.invalidation.Invalidator
-
@Component public class Invalidator extends Object
Contains functionality related to cache entry invalidation.
-
-
Constructor Summary
Constructors Constructor Description Invalidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
invalidate(Class<?> type, String oid, CacheInvalidationContext context)
<T extends ObjectType>
voidinvalidateCacheEntries(Class<T> type, String oid, Object additionalInfo, OperationResult parentResult)
<T extends ObjectType>
booleanisSearchResultValid(QueryKey<T> key, SearchResultList<PrismObject<T>> list, List<InvalidationEvent> invalidationEvents)
Checks if the search result is still valid, even specified invalidation events came.void
registerInvalidationEventsListener(InvalidationEventListener listener)
void
unregisterInvalidationEventsListener(InvalidationEventListener listener)
-
-
-
Field Detail
-
LOGGER
public static final Trace LOGGER
-
-
Method Detail
-
invalidate
public void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
-
invalidateCacheEntries
public <T extends ObjectType> void invalidateCacheEntries(Class<T> type, String oid, Object additionalInfo, OperationResult parentResult)
-
registerInvalidationEventsListener
public void registerInvalidationEventsListener(InvalidationEventListener listener)
-
unregisterInvalidationEventsListener
public void unregisterInvalidationEventsListener(InvalidationEventListener listener)
-
isSearchResultValid
public <T extends ObjectType> boolean isSearchResultValid(QueryKey<T> key, SearchResultList<PrismObject<T>> list, List<InvalidationEvent> invalidationEvents)
Checks if the search result is still valid, even specified invalidation events came.
-
-