Class LastAccessedSpacesCacheSelector
java.lang.Object
org.exoplatform.social.core.storage.cache.selector.CacheSelector<ListSpacesKey,ListSpacesData>
org.exoplatform.social.core.storage.cache.selector.LastAccessedSpacesCacheSelector
- All Implemented Interfaces:
org.exoplatform.services.cache.CachedObjectSelector<ListSpacesKey,ListSpacesData>
Cache selector for last accessed spaces.
It select all cache entries for the given userId and for space type LATEST_ACCESSED or VISITED.
-
Constructor Summary
ConstructorsConstructorDescriptionLastAccessedSpacesCacheSelector(String remoteId, org.exoplatform.social.core.space.model.Space space, SocialStorageCacheService cacheService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonSelect(org.exoplatform.services.cache.ExoCache<? extends ListSpacesKey, ? extends ListSpacesData> exoCache, ListSpacesKey listSpacesKey, org.exoplatform.services.cache.ObjectCacheInfo<? extends ListSpacesData> objectCacheInfo) booleanselect(ListSpacesKey listSpacesKey, org.exoplatform.services.cache.ObjectCacheInfo<? extends ListSpacesData> objectCacheInfo)
-
Constructor Details
-
LastAccessedSpacesCacheSelector
public LastAccessedSpacesCacheSelector(String remoteId, org.exoplatform.social.core.space.model.Space space, SocialStorageCacheService cacheService)
-
-
Method Details
-
select
public boolean select(ListSpacesKey listSpacesKey, org.exoplatform.services.cache.ObjectCacheInfo<? extends ListSpacesData> objectCacheInfo) - Specified by:
selectin interfaceorg.exoplatform.services.cache.CachedObjectSelector<ListSpacesKey,ListSpacesData> - Overrides:
selectin classCacheSelector<ListSpacesKey,ListSpacesData>
-
onSelect
public void onSelect(org.exoplatform.services.cache.ExoCache<? extends ListSpacesKey, ? extends ListSpacesData> exoCache, ListSpacesKey listSpacesKey, org.exoplatform.services.cache.ObjectCacheInfo<? extends ListSpacesData> objectCacheInfo) throws Exception- Specified by:
onSelectin interfaceorg.exoplatform.services.cache.CachedObjectSelector<ListSpacesKey,ListSpacesData> - Overrides:
onSelectin classCacheSelector<ListSpacesKey,ListSpacesData> - Throws:
Exception
-
isUpdateStore
public boolean isUpdateStore()
-