Package com.evolveum.midpoint.repo.api
Interface Cache
-
- All Superinterfaces:
CacheInvalidationListener
- All Known Implementing Classes:
ArchetypeManager,ExpressionFactory,RepositoryCache,ScriptExpressionFactory,SystemConfigurationCacheAdapter,SystemObjectCache,TriggerCreatorGlobalState
public interface Cache extends CacheInvalidationListener
Defines basic contract for local caches (various caching components or services).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddumpContent()default Collection<CacheInvalidationEventSpecification>getEventSpecifications()@NotNull Collection<SingleCacheStateInformationType>getStateInformation()voidinvalidate(Class<?> type, String oid, CacheInvalidationContext context)default <O extends ObjectType>
voidinvalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)Invalidates given object(s) in all relevant caches.
-
-
-
Method Detail
-
getEventSpecifications
default Collection<CacheInvalidationEventSpecification> getEventSpecifications()
- Specified by:
getEventSpecificationsin interfaceCacheInvalidationListener
-
invalidate
default <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).
-
invalidate
void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
-
getStateInformation
@NotNull @NotNull Collection<SingleCacheStateInformationType> getStateInformation()
-
dumpContent
void dumpContent()
-
-