Class RestateClientAutoConfiguration
java.lang.Object
dev.restate.sdk.springboot.RestateClientAutoConfiguration
@Configuration
@EnableConfigurationProperties(RestateClientProperties.class)
public class RestateClientAutoConfiguration
extends Object
Configuration for Restate's
Client, to send requests to Restate services.
Auto instrumentation
When Micrometer's JDK
HttpClient instrumentation is on the classpath and a MeterRegistry bean is available,
the underlying HttpClient is instrumented. To enable it, make sure
spring-boot-starter-actuator and io.micrometer:micrometer-java11 are in the classpath.
Payload codec
When a PayloadCodec bean is available, it is used by the client to encode request
bodies and decode response bodies. The same bean is used by the Restate endpoint for all the
services.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclient(RestateClientProperties restateClientProperties) Deprecated, for removal: This API element is subject to removal in a future version.restateClient(org.springframework.context.ApplicationContext context, RestateClientProperties restateClientProperties)
-
Constructor Details
-
RestateClientAutoConfiguration
public RestateClientAutoConfiguration()
-
-
Method Details
-
client
Deprecated, for removal: This API element is subject to removal in a future version. -
restateClient
@Bean public Client restateClient(org.springframework.context.ApplicationContext context, RestateClientProperties restateClientProperties)
-
restateClient(ApplicationContext, RestateClientProperties)instead.