예제 #1
0
 public void registerSuccessfulSending() {
   deliveryCounters.incrementSuccesses();
 }
예제 #2
0
 public void registerFailedSending() {
   deliveryCounters.incrementFailures();
 }
예제 #3
0
 public void adjustConsumerRate() {
   OutputRateCalculationResult result = recalculate();
   rateLimiter.setRate(result.rate());
   currentMode = result.mode();
   deliveryCounters.reset();
 }