Package com.simplicite.util
Interface CacheInterface
-
- All Known Implementing Classes:
ConfigurationObject
,ExternalObject
,Grant
,GrantCore
,JQueryWebPageExternalObject
,ObjectCore
,ObjectDB
,ObjectService
,ObjectServiceLDAP
,ObjectServiceOpenDataSoft
,ObjectServiceSalesForce
,ObjectServiceSimplicite
,Processus
,ProcessusCore
,ResponsiveExternalObject
,RESTMappedObjectsExternalObject
,RESTServiceExternalObject
,ScriptedExternalObject
,ScriptedObjectDB
,ScriptedProcessus
,StaticSiteExternalObject
,WebPageExternalObject
public interface CacheInterface
Cache object interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
enableGC(boolean enabled)
Disable or Enable the internal GCboolean
garbageCollection()
Partial garbage collection of objectjava.lang.String
getCacheKey(Grant g)
Memory unique cache key of object instancejava.lang.String
getName()
Related object nameboolean
isJavaImplemented()
Hooks implemented in Java?long
lastUsage(boolean update)
Manage the last usage of object
-
-
-
Method Detail
-
getCacheKey
java.lang.String getCacheKey(Grant g)
Memory unique cache key of object instance- Parameters:
g
- Grant- Returns:
- Cache key of object instance
-
getName
java.lang.String getName()
Related object name- Returns:
- Name
-
enableGC
void enableGC(boolean enabled)
Disable or Enable the internal GC- Parameters:
enabled
- false to disable internal GC
-
lastUsage
long lastUsage(boolean update)
Manage the last usage of object- Parameters:
update
- true to update the last usage date of object- Returns:
- last usage date in milliseconds
-
garbageCollection
boolean garbageCollection()
Partial garbage collection of object- Returns:
- True if something has been cleared
-
isJavaImplemented
boolean isJavaImplemented()
Hooks implemented in Java?- Returns:
- True if implemented in Java
-
-