Interface SyncGraphQlClientInterceptor
public interface SyncGraphQlClientInterceptor
Interceptor of
GraphQlClient
requests for use in a blocking execution
chain with a SyncGraphQlTransport
.- Since:
- 1.3.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Contract to delegate to the rest of a blocking execution chain. -
Method Summary
Modifier and TypeMethodDescriptiondefault SyncGraphQlClientInterceptor
andThen
(SyncGraphQlClientInterceptor interceptor) Return a new interceptor that invokes the current interceptor first and then the one that is passed in.default ClientGraphQlResponse
intercept
(ClientGraphQlRequest request, SyncGraphQlClientInterceptor.Chain chain) Intercept a single response request (query and mutation operations), and delegate to the rest of the chain including other interceptors followed by theSyncGraphQlTransport
.
-
Method Details
-
intercept
default ClientGraphQlResponse intercept(ClientGraphQlRequest request, SyncGraphQlClientInterceptor.Chain chain) Intercept a single response request (query and mutation operations), and delegate to the rest of the chain including other interceptors followed by theSyncGraphQlTransport
.- Parameters:
request
- the request to performchain
- the rest of the chain to perform the request- Returns:
- the response
- See Also:
-
andThen
Return a new interceptor that invokes the current interceptor first and then the one that is passed in.- Parameters:
interceptor
- the interceptor to delegate to after "this"- Returns:
- the new interceptor instance
-