Set of cool annotations that helps you building Thrift applications with Spring Boot
Update all libs, move to JUnit5, and more
Thrift clients can also be used as regular beans
(which can be configured through app properties)
class Service {
@Autowired
private TGreetingService.Client client;
}
class Service {
private final TGreetingService.Client client;
@Autowired
public Service(TGreetingService.Client client) {
this.client = client;
}
}
Sources were upgraded to use with Spring Boot 2 and Spring Cloud Finchley. Add possible reconfiguration of max total threads of thriftClientsPool. Disable proxy factory optimization
Thanks to @Quaiks for this contribution
Retry capabilities using {serviceName}.maxRetries value are added to retry on connection timeouts and 'no instance available' exceptions
Plus deadlock fix
Thanks to @jihor for contribution
When a class and it's super class both define fields that are annotated with ThriftClient annotation, only fields in super class would get initialized. In this release this issue is fixed
Now API clients can control all logging (including afterThrowing) using their own Interceptor if it is required.
Introduce new property: thrift.client.max.threads
that has default value = 8