Package com.evolveum.midpoint.model.impl
Class ClusterCacheListener
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.ClusterCacheListener
-
- All Implemented Interfaces:
CacheInvalidationListener,CacheListener
@Component public class ClusterCacheListener extends Object implements CacheListener
-
-
Constructor Summary
Constructors Constructor Description ClusterCacheListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener()<O extends ObjectType>
voidinvalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)Invalidates given object(s) in all relevant caches.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.repo.api.CacheListener
getEventSpecifications
-
-
-
-
Method Detail
-
addListener
@PostConstruct public void addListener()
-
invalidate
public <O extends ObjectType> void invalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)
Description copied from interface:CacheInvalidationListenerInvalidates given object(s) in all relevant caches.- Specified by:
invalidatein interfaceCacheInvalidationListener- Parameters:
type- Type of object (null means all types).oid- OID of object (null means all object(s) of given type(s)).clusterwide- Whether to distribute this event clusterwide.context- Context of the invalidation request (optional).
-
-