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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContract to delegate to the rest of a blocking execution chain. -
Method Summary
Modifier and TypeMethodDescriptiondefault SyncGraphQlClientInterceptorandThen(SyncGraphQlClientInterceptor interceptor) Return a new interceptor that invokes the current interceptor first and then the one that is passed in.default ClientGraphQlResponseintercept(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
-