Interface PersistedQueryCacheMiss
-
- All Superinterfaces:
java.util.function.Function<java.lang.String,PreparsedDocumentEntry>
@PublicApi public interface PersistedQueryCacheMiss extends java.util.function.Function<java.lang.String,PreparsedDocumentEntry>
The call back when a valid persisted query is not in cache and it needs to be compiled and validated by the graphql engine. If you get a cache miss in yourPersistedQueryCacheimplementation then you are required to call back on the provided instance of this interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PreparsedDocumentEntryapply(java.lang.String queryToBeParsedAndValidated)You give back the missing query text and graphql-java will compile and validate it.
-
-
-
Method Detail
-
apply
PreparsedDocumentEntry apply(java.lang.String queryToBeParsedAndValidated)
You give back the missing query text and graphql-java will compile and validate it.- Specified by:
applyin interfacejava.util.function.Function<java.lang.String,PreparsedDocumentEntry>- Parameters:
queryToBeParsedAndValidated- the query text to be parsed and validated- Returns:
- a parsed and validated query document ready for caching
-
-