Class SubjectSourceSerializer
java.lang.Object
edu.internet2.middleware.grouper.subj.cache.SubjectSourceSerializer
- Direct Known Subclasses:
SubjectSourceSerializerFile
serialize a cache to storage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intcleanupOldSubjectCaches(long keepNewestIfNewerThanMillis, Map<String, Object> debugMap) if there are old caches that can be safely removed, remove themabstract SubjectSourceCacheBeanretrieveLatestSubjectCache(long newerThanMillis, Map<String, Object> debugMap) store subject cache to serialization mechanismabstract voidstoreSubjectCache(SubjectSourceCacheBean subjectSourceCacheBean, Map<String, Object> debugMap) store subject cache to serialization mechanism
-
Constructor Details
-
SubjectSourceSerializer
public SubjectSourceSerializer()
-
-
Method Details
-
storeSubjectCache
public abstract void storeSubjectCache(SubjectSourceCacheBean subjectSourceCacheBean, Map<String, Object> debugMap) store subject cache to serialization mechanism- Parameters:
subjectSourceCacheBean-debugMap- if not null add debug info
-
retrieveLatestSubjectCache
public abstract SubjectSourceCacheBean retrieveLatestSubjectCache(long newerThanMillis, Map<String, Object> debugMap) store subject cache to serialization mechanism- Parameters:
newerThanMillis-debugMap- if not null add debug info- Returns:
- subjectSourceCacheBean
-
cleanupOldSubjectCaches
public abstract int cleanupOldSubjectCaches(long keepNewestIfNewerThanMillis, Map<String, Object> debugMap) if there are old caches that can be safely removed, remove them- Parameters:
keepNewestIfNewerThanMillis-debugMap- if not null add debug info- Returns:
- how many caches removed
-