Class 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
      boolean equals​(java.lang.Object o)  
      static RestTemplateCacheValueLoader from​(org.springframework.web.client.RestTemplate restTemplate)  
      int hashCode()  
      org.springframework.web.client.RestTemplate load​(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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • load

        public org.springframework.web.client.RestTemplate load​(CacheKey key)
        Description copied from interface: CacheValueLoader
        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.
        Specified by:
        load in interface CacheValueLoader<org.springframework.web.client.RestTemplate>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object