Class NullScheduledExecutorService
java.lang.Object
com.illumon.iris.db.v2.locations.util.NullScheduledExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService
This is a dummy ScheduledExecutorService that we use in TableDataRefreshService when we don't actually want to execute
any background refresh tasks. It only implements the methods needed for that use case, and is intended for unit
tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, @NotNull TimeUnit unit) voidinvokeAll(@NotNull Collection<? extends Callable<T>> tasks) invokeAll(@NotNull Collection<? extends Callable<T>> tasks, long timeout, @NotNull TimeUnit unit) <T> TinvokeAny(@NotNull Collection<? extends Callable<T>> tasks) <T> TinvokeAny(@NotNull Collection<? extends Callable<T>> tasks, long timeout, @NotNull TimeUnit unit) booleanboolean@NotNull ScheduledFuture<?><V> @NotNull ScheduledFuture<V>@NotNull ScheduledFuture<?>scheduleAtFixedRate(@NotNull Runnable command, long initialDelay, long period, @NotNull TimeUnit unit) @NotNull ScheduledFuture<?>scheduleWithFixedDelay(@NotNull Runnable command, long initialDelay, long delay, @NotNull TimeUnit unit) voidshutdown()@NotNull Future<?><T> @NotNull Future<T><T> @NotNull Future<T>
-
Constructor Details
-
NullScheduledExecutorService
public NullScheduledExecutorService()
-
-
Method Details
-
schedule
@NotNull public @NotNull ScheduledFuture<?> schedule(@NotNull @NotNull Runnable command, long delay, @NotNull @NotNull TimeUnit unit) - Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
@NotNull public <V> @NotNull ScheduledFuture<V> schedule(@NotNull @NotNull Callable<V> callable, long delay, @NotNull @NotNull TimeUnit unit) - Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
@NotNull public @NotNull ScheduledFuture<?> scheduleAtFixedRate(@NotNull @NotNull Runnable command, long initialDelay, long period, @NotNull @NotNull TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
@NotNull public @NotNull ScheduledFuture<?> scheduleWithFixedDelay(@NotNull @NotNull Runnable command, long initialDelay, long delay, @NotNull @NotNull TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
invokeAll
@NotNull public <T> @NotNull List<Future<T>> invokeAll(@NotNull @NotNull Collection<? extends Callable<T>> tasks) - Specified by:
invokeAllin interfaceExecutorService
-
invokeAll
@NotNull public <T> @NotNull List<Future<T>> invokeAll(@NotNull @NotNull Collection<? extends Callable<T>> tasks, long timeout, @NotNull @NotNull TimeUnit unit) - Specified by:
invokeAllin interfaceExecutorService
-
invokeAny
- Specified by:
invokeAnyin interfaceExecutorService
-
invokeAny
public <T> T invokeAny(@NotNull @NotNull Collection<? extends Callable<T>> tasks, long timeout, @NotNull @NotNull TimeUnit unit) - Specified by:
invokeAnyin interfaceExecutorService
-
execute
-