Class RoboExecutorService
java.lang.Object
org.robolectric.android.util.concurrent.RoboExecutorService
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService
Deprecated.
Executor service that runs all operations on the background scheduler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long l, TimeUnit timeUnit) Deprecated.voidDeprecated.invokeAll(Collection<? extends Callable<T>> callables) Deprecated.invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) Deprecated.<T> TinvokeAny(Collection<? extends Callable<T>> callables) Deprecated.<T> TinvokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) Deprecated.booleanDeprecated.booleanDeprecated.voidshutdown()Deprecated.Deprecated.Future<?> Deprecated.<T> Future<T> Deprecated.<T> Future<T> Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExecutorService
close
-
Constructor Details
-
RoboExecutorService
public RoboExecutorService()Deprecated.
-
-
Method Details
-
shutdown
-
shutdownNow
Deprecated.- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
-
isTerminated
-
awaitTermination
Deprecated.- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-
invokeAll
@Nonnull public <T> List<Future<T>> invokeAll(@Nonnull Collection<? extends Callable<T>> callables) throws InterruptedException Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
@Nonnull public <T> List<Future<T>> invokeAll(@Nonnull Collection<? extends Callable<T>> callables, long l, @Nonnull TimeUnit timeUnit) throws InterruptedException Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
@Nonnull public <T> T invokeAny(@Nonnull Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(@Nonnull Collection<? extends Callable<T>> callables, long l, @Nonnull TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
execute
-
LooperMode.Mode.LEGACYmode. Consider using guava'sMoreExecutors.directExecutor()orPausedExecutorServiceorInlineExecutorService.