Avoid to cal getMaximumRolloverTimeMs everytime
@@ -3956,7 +3956,7 @@ public class ManagedLedgerImpl implements ManagedLedger, CreateCallback {
checkLedgerRollTask.cancel(true);
}
this.checkLedgerRollTask = this.scheduledExecutor.schedule(
- safeRun(this::rollCurrentLedgerIfFull), getMaximumRolloverTimeMs(config), TimeUnit.MILLISECONDS);
+ safeRun(this::rollCurrentLedgerIfFull), this.maximumRolloverTimeMs, TimeUnit.MILLISECONDS);
}
}
