Interface TypesafeGraphQLClientBuilder
public interface TypesafeGraphQLClientBuilder
Use this builder, when you are not in a CDI context, i.e. when working with Java SE.
-
Method Summary
Modifier and TypeMethodDescriptionallowUnexpectedResponseFields(boolean value) <T> TBuild the proxy for that api interface.The base key used to read configuration values.default TypesafeGraphQLClientBuilderThe URL where the GraphQL service is listeningThe URL where the GraphQL service is listeningexecuteSingleOperationsOverWebsocket(boolean value) If this is true, then queries and mutations will also be executed over a websocket connection rather than over pure HTTP.Static header to send with all methods in this client.default TypesafeGraphQLClientBuilderStatic headers to send with all methods in this client.initPayload(Map<String, Object> initPayload) Static payload to send with initialization method on subscription.static TypesafeGraphQLClientBuildersubprotocols(WebsocketSubprotocol... subprotocols) websocketInitializationTimeout(Integer timeoutInMilliseconds) Maximum time (in milliseconds) allowed between initializing a subscription websocket and receiving a subscription start acknowledgement from the server.websocketUrl(String url) Path to the websocket endpoint.
-
Method Details
-
newBuilder
-
configKey
The base key used to read configuration values. Defaults to the fully qualified name of the API interface. -
endpoint
The URL where the GraphQL service is listening -
endpoint
The URL where the GraphQL service is listening -
websocketUrl
Path to the websocket endpoint. By default this is the regular HTTP endpoint with the protocol changed to `ws`. -
executeSingleOperationsOverWebsocket
If this is true, then queries and mutations will also be executed over a websocket connection rather than over pure HTTP. As this comes with higher overhead, it is false by default. -
headers
Static headers to send with all methods in this client.- See Also:
-
header
Static header to send with all methods in this client.- See Also:
-
initPayload
Static payload to send with initialization method on subscription. -
subprotocols
-
allowUnexpectedResponseFields
-
websocketInitializationTimeout
Maximum time (in milliseconds) allowed between initializing a subscription websocket and receiving a subscription start acknowledgement from the server. -
build
Build the proxy for that api interface.
-