Package io.fria.lilo
Class RemoteSchemaSource
java.lang.Object
io.fria.lilo.RemoteSchemaSource
- All Implemented Interfaces:
SchemaSource
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SchemaSourcecreate(@NotNull String schemaName, @NotNull io.fria.lilo.IntrospectionRetriever<?> introspectionRetriever, @NotNull io.fria.lilo.QueryRetriever<?> queryRetriever) @NotNull CompletableFuture<graphql.ExecutionResult>execute(@NotNull LiloContext liloContext, @NotNull GraphQLQuery query, @Nullable Object localContext) @NotNull StringgetName()@NotNull graphql.schema.idl.RuntimeWiring@NotNull graphql.schema.idl.TypeDefinitionRegistryvoidboolean@NotNull CompletableFuture<SchemaSource>loadSchema(@NotNull LiloContext liloContext, @Nullable Object localContext)
-
Method Details
-
create
@NotNull public static @NotNull SchemaSource create(@NotNull @NotNull String schemaName, @NotNull @NotNull io.fria.lilo.IntrospectionRetriever<?> introspectionRetriever, @NotNull @NotNull io.fria.lilo.QueryRetriever<?> queryRetriever) -
execute
@NotNull public @NotNull CompletableFuture<graphql.ExecutionResult> execute(@NotNull @NotNull LiloContext liloContext, @NotNull @NotNull GraphQLQuery query, @Nullable @Nullable Object localContext) - Specified by:
executein interfaceSchemaSource
-
getName
- Specified by:
getNamein interfaceSchemaSource
-
getRuntimeWiring
@NotNull public @NotNull graphql.schema.idl.RuntimeWiring getRuntimeWiring()- Specified by:
getRuntimeWiringin interfaceSchemaSource
-
getTypeDefinitionRegistry
@NotNull public @NotNull graphql.schema.idl.TypeDefinitionRegistry getTypeDefinitionRegistry()- Specified by:
getTypeDefinitionRegistryin interfaceSchemaSource
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceSchemaSource
-
isSchemaNotLoaded
public boolean isSchemaNotLoaded()- Specified by:
isSchemaNotLoadedin interfaceSchemaSource
-
loadSchema
@NotNull public @NotNull CompletableFuture<SchemaSource> loadSchema(@NotNull @NotNull LiloContext liloContext, @Nullable @Nullable Object localContext) - Specified by:
loadSchemain interfaceSchemaSource
-