Class GraphQLRequestProcessorImpl
java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.reqproc.GraphQLRequestProcessorImpl
- All Implemented Interfaces:
GraphQLRequestProcessor
,JSONRetrievalProcessor<GraphQLRequest,
,GraphQLEndpoint> RequestProcessor<GraphQLRequest,
GraphQLEndpoint>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final int
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLRequestProcessorImpl
(int connectionTimeout, int readTimeout) The given timeouts are specified in milliseconds. -
Method Summary
Modifier and TypeMethodDescriptionperformRequest
(GraphQLRequest req, GraphQLEndpoint fm) Assumes that fm has aJSONRetrievalInterface
.
-
Field Details
-
connectionTimeout
protected final int connectionTimeout -
readTimeout
protected final int readTimeout
-
-
Constructor Details
-
GraphQLRequestProcessorImpl
public GraphQLRequestProcessorImpl(int connectionTimeout, int readTimeout) The given timeouts are specified in milliseconds. Any value <= 0 means no timeout. -
GraphQLRequestProcessorImpl
public GraphQLRequestProcessorImpl()
-
-
Method Details
-
performRequest
public JSONResponse performRequest(GraphQLRequest req, GraphQLEndpoint fm) throws FederationAccessException Description copied from interface:JSONRetrievalProcessor
Assumes that fm has aJSONRetrievalInterface
.- Specified by:
performRequest
in interfaceJSONRetrievalProcessor<GraphQLRequest,
GraphQLEndpoint> - Specified by:
performRequest
in interfaceRequestProcessor<GraphQLRequest,
GraphQLEndpoint> - Throws:
FederationAccessException
-