Class DestinationRestTemplateCache
- java.lang.Object
-
- de.hybris.platform.outboundservices.cache.impl.DestinationRestTemplateCache
-
- All Implemented Interfaces:
IntegrationCache<DestinationRestTemplateCacheKey,org.springframework.web.client.RestTemplate>,RestTemplateCache
public class DestinationRestTemplateCache extends java.lang.Object implements RestTemplateCache
-
-
Constructor Summary
Constructors Constructor Description DestinationRestTemplateCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(DestinationRestTemplateCacheKey key)Indicates whether the key exists in the cacheorg.springframework.web.client.RestTemplateget(DestinationRestTemplateCacheKey key)Gets the item from the cache by the keyprotected CacheKeyinternalKey(DestinationRestTemplateCacheKey key)protected CacheValueLoaderload(org.springframework.web.client.RestTemplate item)voidput(DestinationRestTemplateCacheKey key, org.springframework.web.client.RestTemplate item)Puts the item in the cache, referenced by the keyorg.springframework.web.client.RestTemplateremove(DestinationRestTemplateCacheKey key)Removes the item from the cache by the keyvoidsetCacheRegion(CacheRegion cacheRegion)
-
-
-
Method Detail
-
get
public org.springframework.web.client.RestTemplate get(DestinationRestTemplateCacheKey key)
Description copied from interface:IntegrationCacheGets the item from the cache by the key- Specified by:
getin interfaceIntegrationCache<DestinationRestTemplateCacheKey,org.springframework.web.client.RestTemplate>- Parameters:
key- Key to the cached item- Returns:
- The object if the key exists, otherwise null
-
put
public void put(DestinationRestTemplateCacheKey key, org.springframework.web.client.RestTemplate item)
Description copied from interface:IntegrationCachePuts the item in the cache, referenced by the key- Specified by:
putin interfaceIntegrationCache<DestinationRestTemplateCacheKey,org.springframework.web.client.RestTemplate>- Parameters:
key- Key to the cached itemitem- Item to cache
-
remove
public org.springframework.web.client.RestTemplate remove(DestinationRestTemplateCacheKey key)
Description copied from interface:IntegrationCacheRemoves the item from the cache by the key- Specified by:
removein interfaceIntegrationCache<DestinationRestTemplateCacheKey,org.springframework.web.client.RestTemplate>- Parameters:
key- Key to the item to invalidate- Returns:
- The invalidated item, otherwise null
-
contains
public boolean contains(DestinationRestTemplateCacheKey key)
Description copied from interface:IntegrationCacheIndicates whether the key exists in the cache- Specified by:
containsin interfaceIntegrationCache<DestinationRestTemplateCacheKey,org.springframework.web.client.RestTemplate>- Parameters:
key- Key to test for existence- Returns:
- True if the key exists, otherwise false
-
internalKey
protected CacheKey internalKey(DestinationRestTemplateCacheKey key)
-
load
protected CacheValueLoader load(org.springframework.web.client.RestTemplate item)
-
setCacheRegion
public void setCacheRegion(CacheRegion cacheRegion)
-
-