Class CacheReader


  • public class CacheReader
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean responseFromCache​(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, GraphQLResponseCacheManager cacheManager)
      Response from cache if possible, if nothing in cache will not produce any response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheReader

        public CacheReader()
    • Method Detail

      • responseFromCache

        public boolean responseFromCache​(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         GraphQLResponseCacheManager cacheManager)
                                  throws java.io.IOException
        Response from cache if possible, if nothing in cache will not produce any response
        Returns:
        true if response was fulfilled from cache, false is cache not found or an error occurred while reading value from cache
        Throws:
        java.io.IOException - if can not read value from the cache