RestateClientAutoConfiguration

@Configuration
@EnableConfigurationProperties(value = RestateClientProperties::class)
open class RestateClientAutoConfiguration

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

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun client(restateClientProperties: RestateClientProperties): Client
Link copied to clipboard
@Bean
open fun restateClient(context: ApplicationContext, restateClientProperties: RestateClientProperties): Client