Package io.fria.lilo
Class RemoteSchemaSource
- java.lang.Object
-
- io.fria.lilo.RemoteSchemaSource
-
- All Implemented Interfaces:
SchemaSource
public final class RemoteSchemaSource extends Object implements SchemaSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @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.RuntimeWiringgetRuntimeWiring()@NotNull graphql.schema.idl.TypeDefinitionRegistrygetTypeDefinitionRegistry()voidinvalidate()booleanisSchemaNotLoaded()@NotNull CompletableFuture<SchemaSource>loadSchema(@NotNull LiloContext liloContext, @Nullable Object localContext)
-
-
-
Method Detail
-
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
@NotNull public @NotNull String 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
-
-