Klasse NonOverlappingTask
java.lang.Object
de.delinkedde.areashopreborn.application.NonOverlappingTask
- Alle implementierten Schnittstellen:
Runnable
Runs an asynchronous scheduled operation at most once concurrently.
A scheduler tick that occurs while the previous stage is incomplete is intentionally skipped. This prevents slow storage or integrations from creating an ever-growing backlog.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNonOverlappingTask(Supplier<? extends CompletionStage<?>> operation, Consumer<Throwable> failureHandler) Creates a guarded asynchronous task. -
Methodenübersicht
-
Konstruktordetails
-
NonOverlappingTask
public NonOverlappingTask(Supplier<? extends CompletionStage<?>> operation, Consumer<Throwable> failureHandler) Creates a guarded asynchronous task.- Parameter:
operation- operation started on an accepted scheduler tickfailureHandler- handler for synchronous and asynchronous failures
-
-
Methodendetails