use of org.komamitsu.fluency.fluentd.ingester.sender.retry.ExponentialBackOffRetryStrategy in project fluency by komamitsu.
the class FluencyBuilderForFluentdTest method assertDefaultRetryableSender.
private void assertDefaultRetryableSender(RetryableSender sender, Class<? extends NetworkSender> expectedBaseClass) {
assertThat(sender.getRetryStrategy(), instanceOf(ExponentialBackOffRetryStrategy.class));
ExponentialBackOffRetryStrategy retryStrategy = (ExponentialBackOffRetryStrategy) sender.getRetryStrategy();
assertThat(retryStrategy.getMaxRetryCount(), is(7));
assertThat(retryStrategy.getBaseIntervalMillis(), is(400));
assertThat(sender.getBaseSender(), instanceOf(expectedBaseClass));
}
Aggregations