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 your PersistedQueryCache implementation 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
      PreparsedDocumentEntry apply​(java.lang.String queryToBeParsedAndValidated)
      You give back the missing query text and graphql-java will compile and validate it.
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • 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:
        apply in interface java.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