Class RoboExecutorService
java.lang.Object
org.robolectric.android.util.concurrent.RoboExecutorService
- All Implemented Interfaces:
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.
-
Constructor Details
-
RoboExecutorService
public RoboExecutorService()Deprecated.
-
-
Method Details
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
Deprecated.- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminatedin interfaceExecutorService
-
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
Deprecated.
-
LooperMode.Mode.LEGACYmode. Consider using guava'sMoreExecutors.directExecutor()orPausedExecutorServiceorInlineExecutorService.