Class ProcessServiceLogReadScheduler
java.lang.Object
eu.cloudnetservice.node.impl.service.defaults.log.ProcessServiceLogReadScheduler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScheduledThreadPoolExecutorprivate static final intprivate static final intprivate static final intprivate final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadjustWorkerCount(int expectedWorkerCount) private voidvoidschedule(@NonNull ProcessServiceLogCache logCache)
-
Field Details
-
LOG_READ_DELAY_MS
private static final int LOG_READ_DELAY_MS -
READ_WORKER_MAXIMUM
private static final int READ_WORKER_MAXIMUM -
READ_ACTIONS_PER_WORKER
private static final int READ_ACTIONS_PER_WORKER -
runningReaderActions
-
executor
-
-
Constructor Details
-
ProcessServiceLogReadScheduler
public ProcessServiceLogReadScheduler()
-
-
Method Details
-
schedule
-
notifyLogCacheReadEnd
private void notifyLogCacheReadEnd() -
adjustWorkerCount
private void adjustWorkerCount(int expectedWorkerCount)
-