Interface ConsulResponse.CacheResponseInfo

  • Enclosing class:
    ConsulResponse<T>

    public static interface ConsulResponse.CacheResponseInfo
    • Method Summary

      Modifier and Type Method Description
      java.util.Optional<java.lang.Long> getAgeInSeconds()
      This value can be null if value is not in cache
      boolean isCacheHit()  
    • Method Detail

      • getAgeInSeconds

        java.util.Optional<java.lang.Long> getAgeInSeconds()
        This value can be null if value is not in cache
        Returns:
      • isCacheHit

        boolean isCacheHit()