Package dev.getelements.elements.rt.util
Class LatchedScheduledExecutorServiceCompletionService
java.lang.Object
dev.getelements.elements.rt.util.LatchedExecutorServiceCompletionService
dev.getelements.elements.rt.util.LatchedScheduledExecutorServiceCompletionService
public class LatchedScheduledExecutorServiceCompletionService
extends LatchedExecutorServiceCompletionService
Subclass of
LatchedExecutorServiceCompletionService
only for use with a ScheduledExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionLatchedScheduledExecutorServiceCompletionService
(ScheduledExecutorService scheduledExecutorService, CompletionServiceLatch latch) -
Method Summary
Modifier and TypeMethodDescription<V> ScheduledFuture
<V> scheduleAtFixedRate
(Runnable runnable, long l, long li, TimeUnit timeUnit) scheduleWithFixedDelay
(Runnable runnable, long l, long li, TimeUnit timeUnit)
-
Constructor Details
-
LatchedScheduledExecutorServiceCompletionService
public LatchedScheduledExecutorServiceCompletionService(ScheduledExecutorService scheduledExecutorService, CompletionServiceLatch latch)
-
-
Method Details
-
schedule
-
schedule
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long l, long li, TimeUnit timeUnit) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long l, long li, TimeUnit timeUnit)
-