org.coursera.naptime.ari.graphql
DefaultGraphqlSchemaProvider
Companion object DefaultGraphqlSchemaProvider
class DefaultGraphqlSchemaProvider extends GraphqlSchemaProvider with StrictLogging
A GraphQL Schema Provider implementation.
We compute the schema and cache it for performance reasons.
Note: we assume that the schemaProvider can return different schemas over time. We also assume that they change relatively slowly.
Note: we rely on object identity to ensure an efficient set comparison. (This is a reasonably good approach, because we assume immutable collections. Therefore we know we will never skip re-computing when we should.
Note: we avoid taking locks to avoid thread contention. We accept this at the cost of potentially re-computing the schema multiple times upon schema change. Additionally, we do not use any volatile variables, but instead rely on the JVM's guarantee that object references are atomically written.
- Alphabetic
- By Inheritance
- DefaultGraphqlSchemaProvider
- StrictLogging
- GraphqlSchemaProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DefaultGraphqlSchemaProvider(schemaProvider: SchemaProvider)
- schemaProvider
A schema provider.
- Annotations
- @Inject()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errors: SchemaErrors
- Definition Classes
- DefaultGraphqlSchemaProvider → GraphqlSchemaProvider
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
schema: Schema[SangriaGraphQlContext, Any]
- Definition Classes
- DefaultGraphqlSchemaProvider → GraphqlSchemaProvider
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )