Class ThriftServiceRegistrationBean


public class ThriftServiceRegistrationBean
extends AbstractServiceRegistrationBean<HttpService,​ThriftServiceRegistrationBean,​TBase<?,​?>,​ExampleHeaders>
A bean with information for registering a thrift service. Enables micrometer monitoring of the service and registers sample requests for use in DocService.

 > @Bean
 > public ThriftServiceRegistrationBean okService() {
 >     return new ThriftServiceRegistrationBean()
 >             .setServiceName("myThriftService")
 >             .setPath("/my_service")
 >             .setService(new MyThriftService())
 >             .setDecorators(LoggingService.newDecorator())
 >             .addExampleRequests(new MyThriftService.hello_args("Armeria"))
 >             .addExampleHeaders(ExampleHeaders.of(AUTHORIZATION, "bearer b03c4fed1a"));
 > }