@@ -31,6 +31,8 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
3131 private static final String GATEWAY_SERVICE_HOST_PROPERTY = "gateway.service.host" ;
3232 private static final String GATEWAY_SERVICE_PORT_PROPERTY = "gateway.service.port" ;
3333 private static final String GATEWAY_SERVICE_CLIENT_TIMEOUT = "gateway.service.timeout" ;
34+ private static final String GATEWAY_SERVICE_CLIENT_MAX_INBOUND_MESSAGE_SIZE =
35+ "gateway.service.maxMessageSize.inbound" ;
3436
3537 private static final String ENTITY_SERVICE_HOST_PROPERTY = "entity.service.host" ;
3638 private static final String ENTITY_SERVICE_PORT_PROPERTY = "entity.service.port" ;
@@ -54,6 +56,7 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
5456 String gatewayServiceHost ;
5557 int gatewayServicePort ;
5658 Duration gatewayServiceTimeout ;
59+ int gatewayServiceMaxInboundMessageSize ;
5760 String entityServiceHost ;
5861 int entityServicePort ;
5962 Duration entityServiceTimeout ;
@@ -73,25 +76,29 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
7376
7477 this .attributeServiceHost = untypedConfig .getString (ATTRIBUTE_SERVICE_HOST_PROPERTY );
7578 this .attributeServicePort = untypedConfig .getInt (ATTRIBUTE_SERVICE_PORT_PROPERTY );
79+ this .attributeServiceTimeout =
80+ getSuppliedDurationOrFallback (
81+ () -> untypedConfig .getDuration (ATTRIBUTE_SERVICE_CLIENT_TIMEOUT ));
82+
7683 this .gatewayServiceHost = untypedConfig .getString (GATEWAY_SERVICE_HOST_PROPERTY );
7784 this .gatewayServicePort = untypedConfig .getInt (GATEWAY_SERVICE_PORT_PROPERTY );
78- this .entityServiceHost = untypedConfig .getString (ENTITY_SERVICE_HOST_PROPERTY );
79- this .entityServicePort = untypedConfig .getInt (ENTITY_SERVICE_PORT_PROPERTY );
80- this .configServiceHost = untypedConfig .getString (CONFIG_SERVICE_HOST_PROPERTY );
81- this .configServicePort = untypedConfig .getInt (CONFIG_SERVICE_PORT_PROPERTY );
82-
8385 this .gatewayServiceTimeout =
8486 getSuppliedDurationOrFallback (
8587 () -> untypedConfig .getDuration (GATEWAY_SERVICE_CLIENT_TIMEOUT ));
86- this .attributeServiceTimeout =
88+ this .gatewayServiceMaxInboundMessageSize =
89+ untypedConfig .getBytes (GATEWAY_SERVICE_CLIENT_MAX_INBOUND_MESSAGE_SIZE ).intValue ();
90+
91+ this .entityServiceHost = untypedConfig .getString (ENTITY_SERVICE_HOST_PROPERTY );
92+ this .entityServicePort = untypedConfig .getInt (ENTITY_SERVICE_PORT_PROPERTY );
93+ this .entityServiceTimeout =
8794 getSuppliedDurationOrFallback (
88- () -> untypedConfig .getDuration (ATTRIBUTE_SERVICE_CLIENT_TIMEOUT ));
95+ () -> untypedConfig .getDuration (ENTITY_SERVICE_CLIENT_TIMEOUT ));
96+
97+ this .configServiceHost = untypedConfig .getString (CONFIG_SERVICE_HOST_PROPERTY );
98+ this .configServicePort = untypedConfig .getInt (CONFIG_SERVICE_PORT_PROPERTY );
8999 this .configServiceTimeout =
90100 getSuppliedDurationOrFallback (
91101 () -> untypedConfig .getDuration (CONFIG_SERVICE_CLIENT_TIMEOUT ));
92- this .entityServiceTimeout =
93- getSuppliedDurationOrFallback (
94- () -> untypedConfig .getDuration (ENTITY_SERVICE_CLIENT_TIMEOUT ));
95102 }
96103
97104 private Duration getSuppliedDurationOrFallback (Supplier <Duration > durationSupplier ) {
0 commit comments