Class GlobalCacheObjectValue<T extends ObjectType>
java.lang.Object
com.evolveum.midpoint.repo.cache.global.GlobalCacheObjectValue<T>
- All Implemented Interfaces:
CachedObjectValue<T>
public class GlobalCacheObjectValue<T extends ObjectType>
extends Object
implements CachedObjectValue<T>
Created by Viliam Repan (lazyman).
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalCacheObjectValue(@NotNull PrismObject<T> object, long checkVersionTime, boolean complete) -
Method Summary
Modifier and TypeMethodDescription@NotNull PrismObject<T>@NotNull Class<? extends ObjectType>booleanIs this object complete, i.e., are there no incomplete items in it?voidsetCheckVersionTime(long checkVersionTime) booleantoString()
-
Constructor Details
-
GlobalCacheObjectValue
public GlobalCacheObjectValue(@NotNull @NotNull PrismObject<T> object, long checkVersionTime, boolean complete)
-
-
Method Details
-
getObjectType
-
getObjectVersion
-
getObject
- Specified by:
getObjectin interfaceCachedObjectValue<T extends ObjectType>
-
isComplete
public boolean isComplete()Description copied from interface:CachedObjectValueIs this object complete, i.e., are there no incomplete items in it? This is a very simple mechanism to allow resolving operations with "include" options from the cache. We assume that if a cached object is complete, then it's safe to return it from the cache regardless of any "include" or "exclude" retrieval options that might be in place. Note that we assume that the object was retrieved WITHOUT any "exclude" options. (Such excluded items are not marked as incomplete.)- Specified by:
isCompletein interfaceCachedObjectValue<T extends ObjectType>
-
setCheckVersionTime
public void setCheckVersionTime(long checkVersionTime) -
shouldCheckVersion
public boolean shouldCheckVersion() -
toString
-