Class RestTemplateCacheValueLoader
- java.lang.Object
-
- de.hybris.platform.outboundservices.cache.impl.RestTemplateCacheValueLoader
-
- All Implemented Interfaces:
CacheValueLoader<org.springframework.web.client.RestTemplate>
public class RestTemplateCacheValueLoader extends java.lang.Object implements CacheValueLoader<org.springframework.web.client.RestTemplate>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static RestTemplateCacheValueLoaderfrom(org.springframework.web.client.RestTemplate restTemplate)inthashCode()org.springframework.web.client.RestTemplateload(CacheKey key)Used by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.
-
-
-
Method Detail
-
from
public static RestTemplateCacheValueLoader from(org.springframework.web.client.RestTemplate restTemplate)
-
load
public org.springframework.web.client.RestTemplate load(CacheKey key)
Description copied from interface:CacheValueLoaderUsed by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.- Specified by:
loadin interfaceCacheValueLoader<org.springframework.web.client.RestTemplate>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-