Real stupidity beats artificial intelligence every time.
― Terry Pratchett, Hogfather
public class RecordCreator {
// private final Supplier<RecordSender> sender;
public RecordCreator(Supplier<String> sender) {
RateLimiterConfig config = RateLimiterConfig.custom()
.limitRefreshPeriod(Duration.ofMillis(1))
.limitForPeriod(10)
.timeoutDuration(Duration.ofMillis(25))
.build();
}
}