public class GraphqlCache extends Object
GraphQL instances used by our REST resources.
This includes staying up to date with CQL schema changes.
| Constructor and Description |
|---|
GraphqlCache(boolean disableDefaultKeyspace) |
| Modifier and Type | Method and Description |
|---|---|
graphql.GraphQL |
getDdl() |
Optional<String> |
getDefaultKeyspaceName(StargateBridgeClient bridge) |
CompletionStage<Optional<String>> |
getDefaultKeyspaceNameAsync(StargateBridgeClient bridge) |
Optional<graphql.GraphQL> |
getDml(StargateBridgeClient bridge,
String keyspaceName) |
CompletionStage<Optional<graphql.GraphQL>> |
getDmlAsync(StargateBridgeClient bridge,
String keyspaceName) |
graphql.GraphQL |
getSchemaFirstAdminGraphql() |
void |
putDml(io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe keyspaceDescribe,
SchemaSource newSource,
graphql.GraphQL graphql)
Fill the cache entry when it's been computed externally.
|
public graphql.GraphQL getDdl()
public graphql.GraphQL getSchemaFirstAdminGraphql()
public CompletionStage<Optional<graphql.GraphQL>> getDmlAsync(StargateBridgeClient bridge, String keyspaceName)
UnauthorizedKeyspaceException - (wrapped in the future) if the client is not authorized
to read the keyspace's contents.public Optional<graphql.GraphQL> getDml(StargateBridgeClient bridge, String keyspaceName)
public void putDml(io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe keyspaceDescribe,
SchemaSource newSource,
graphql.GraphQL graphql)
public CompletionStage<Optional<String>> getDefaultKeyspaceNameAsync(StargateBridgeClient bridge)
public Optional<String> getDefaultKeyspaceName(StargateBridgeClient bridge)
Copyright © 2022. All rights reserved.