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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long l, TimeUnit timeUnit) Deprecated.void
Deprecated.invokeAll
(Collection<? extends Callable<T>> callables) Deprecated.invokeAll
(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) Deprecated.<T> T
invokeAny
(Collection<? extends Callable<T>> callables) Deprecated.<T> T
invokeAny
(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) Deprecated.boolean
Deprecated.boolean
Deprecated.void
shutdown()
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:
shutdown
in interfaceExecutorService
-
shutdownNow
Deprecated.- Specified by:
shutdownNow
in interfaceExecutorService
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdown
in interfaceExecutorService
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminated
in interfaceExecutorService
-
awaitTermination
Deprecated.- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedException Deprecated.- Specified by:
invokeAll
in interfaceExecutorService
- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException Deprecated.- Specified by:
invokeAll
in interfaceExecutorService
- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException Deprecated.- Specified by:
invokeAny
in interfaceExecutorService
- Throws:
InterruptedException
ExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
invokeAny
in interfaceExecutorService
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
execute
Deprecated.
-
LooperMode.LEGACY
mode. Consider using guava'sMoreExecutors#directExecutor()
orPausedExecutorService
orInlineExecutorService
.