Package graphql.kickstart.servlet.cache
Class CachingHttpRequestInvoker
- java.lang.Object
-
- graphql.kickstart.servlet.cache.CachingHttpRequestInvoker
-
- All Implemented Interfaces:
HttpRequestInvoker
public class CachingHttpRequestInvoker extends java.lang.Object implements HttpRequestInvoker
-
-
Constructor Summary
Constructors Constructor Description CachingHttpRequestInvoker(GraphQLConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ListenerHandler listenerHandler)Try to return value from cache if cache exists, otherwise process the query normally
-
-
-
Constructor Detail
-
CachingHttpRequestInvoker
public CachingHttpRequestInvoker(GraphQLConfiguration configuration)
-
-
Method Detail
-
execute
public void execute(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ListenerHandler listenerHandler)Try to return value from cache if cache exists, otherwise process the query normally- Specified by:
executein interfaceHttpRequestInvoker
-
-