Package | Description |
---|---|
org.springframework.graphql.execution |
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL . |
org.springframework.graphql.web |
Support for executing GraphQL requests over the Web, including handlers for HTTP and
WebSocket.
|
Modifier and Type | Method and Description |
---|---|
static ThreadLocalAccessor |
ThreadLocalAccessor.composite(List<ThreadLocalAccessor> accessors)
Create a composite accessor that applies all of the given ThreadLocal accessors.
|
Modifier and Type | Method and Description |
---|---|
static reactor.util.context.Context |
ContextManager.extractThreadLocalValues(ThreadLocalAccessor accessor,
reactor.util.context.Context context)
Use the given accessor to extract ThreadLocal values and save them in a
sub-map in the given
Context , so those can be restored later
around the execution of data fetchers and exception resolvers. |
Modifier and Type | Method and Description |
---|---|
static ThreadLocalAccessor |
ThreadLocalAccessor.composite(List<ThreadLocalAccessor> accessors)
Create a composite accessor that applies all of the given ThreadLocal accessors.
|
Modifier and Type | Method and Description |
---|---|
WebGraphQlHandler.Builder |
WebGraphQlHandler.Builder.threadLocalAccessor(ThreadLocalAccessor... accessors)
Configure accessors for ThreadLocal variables to use to extract
ThreadLocal values at the start of GraphQL execution in the web layer,
and have those saved, and restored around the invocation of data
fetchers and exception resolvers.
|
Modifier and Type | Method and Description |
---|---|
WebGraphQlHandler.Builder |
WebGraphQlHandler.Builder.threadLocalAccessors(List<ThreadLocalAccessor> accessors)
Alternative to
WebGraphQlHandler.Builder.threadLocalAccessor(ThreadLocalAccessor...) with a
List. |