Package dev.restate.sdk.springboot
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.
- 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.