public static interface WebGraphQlHandler.Builder
Modifier and Type | Method and Description |
---|---|
WebGraphQlHandler |
build()
Build the
WebGraphQlHandler instance. |
WebGraphQlHandler.Builder |
interceptor(WebInterceptor... interceptors)
Configure interceptors to be invoked before the target
GraphQlService . |
WebGraphQlHandler.Builder |
interceptors(List<WebInterceptor> interceptors)
Alternative to
interceptor(WebInterceptor...) with a List. |
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.
|
WebGraphQlHandler.Builder |
threadLocalAccessors(List<ThreadLocalAccessor> accessors)
Alternative to
threadLocalAccessor(ThreadLocalAccessor...) with a
List. |
WebGraphQlHandler.Builder interceptor(WebInterceptor... interceptors)
GraphQlService
.interceptors
- the interceptors to addWebGraphQlHandler.Builder interceptors(List<WebInterceptor> interceptors)
interceptor(WebInterceptor...)
with a List.interceptors
- the list of interceptors to addWebGraphQlHandler.Builder threadLocalAccessor(ThreadLocalAccessor... accessors)
accessors
- the accessors to addWebGraphQlHandler.Builder threadLocalAccessors(List<ThreadLocalAccessor> accessors)
threadLocalAccessor(ThreadLocalAccessor...)
with a
List.accessors
- the list of accessors to addWebGraphQlHandler build()
WebGraphQlHandler
instance.