Class CacheUtils
java.lang.Object
com.priint.pubserver.plugin.entitymanager.cache.CacheUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) voidaddSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier, Long ttl, TimeUnit ttlTimeUnit) voidaddTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) voidaddTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) com.priint.pubserver.comet.bridge.CometBridgeLocalList<? extends com.priint.pubserver.plugin.entitydata.EntityData>getEntitiesOfBucketFromCache(CacheUtils.EntityClassType entityClassType, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) List<? extends com.priint.pubserver.plugin.entitydata.EntityData>getEntityChildBucketsFromCache(String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) List<? extends com.priint.pubserver.plugin.entitydata.EntityData>getEntityCordedBucketsFromCache(String sessionId, String entityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) List<? extends com.priint.pubserver.plugin.entitydata.EntityData>getEntityRootBucketsFromCache(String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) <T extends com.priint.pubserver.plugin.entitydata.EntityData>
List<T>getListWithSingleEntityDataFromCache(String sessionId, String entityModelIdentifier, String cacheKey)
-
Constructor Details
-
CacheUtils
public CacheUtils()
-
-
Method Details
-
getEntitiesOfBucketFromCache
public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntitiesOfBucketFromCache(CacheUtils.EntityClassType entityClassType, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getEntityChildBucketsFromCache
public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityChildBucketsFromCache(String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getEntityRootBucketsFromCache
public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityRootBucketsFromCache(String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getEntityCordedBucketsFromCache
public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityCordedBucketsFromCache(String sessionId, String entityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getListWithSingleEntityDataFromCache
public <T extends com.priint.pubserver.plugin.entitydata.EntityData> List<T> getListWithSingleEntityDataFromCache(String sessionId, String entityModelIdentifier, String cacheKey) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityChildBucketsListToCache
public void addEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityChildBucketsListToCache
public void addEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityRootBucketsListToCache
public void addEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityRootBucketsListToCache
public void addEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addKeyValuesOfBucketToCache
public void addKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addKeyValuesOfBucketToCache
public void addKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addPricesOfBucketToCache
public void addPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addPricesOfBucketToCache
public void addPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addTextsOfBucketToCache
public void addTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addTextsOfBucketToCache
public void addTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addMediaAssetsOfBucketToCache
public void addMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addMediaAssetsOfBucketToCache
public void addMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addCordsOfBucketToCache
public void addCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addCordsOfBucketToCache
public void addCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityCordedBucketsToCache
public void addEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addEntityCordedBucketsToCache
public void addEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addSingleEntityToCache
public void addSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
addSingleEntityToCache
public void addSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getTenant
public String getTenant(String sessionId, String project) throws com.priint.pubserver.plugin.exception.EntityManagerException - Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-
getCometBridgeLocal
public com.priint.pubserver.comet.bridge.CometBridgeLocal getCometBridgeLocal() throws com.priint.pubserver.plugin.exception.EntityManagerException- Throws:
com.priint.pubserver.plugin.exception.EntityManagerException
-