Class RoboExecutorService
- java.lang.Object
-
- org.robolectric.android.util.concurrent.RoboExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
@Deprecated public class RoboExecutorService extends Object implements ExecutorService
Deprecated.only works when used in conjunction with the deprecatedLooperMode.LEGACY
mode. Consider using guava'sMoreExecutors#directExecutor()
orPausedExecutorService
orInlineExecutorService
.Executor service that runs all operations on the background scheduler.
-
-
Constructor Summary
Constructors Constructor Description RoboExecutorService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
awaitTermination(long l, TimeUnit timeUnit)
Deprecated.void
execute(Runnable runnable)
Deprecated.<T> List<Future<T>>
invokeAll(Collection<? extends Callable<T>> callables)
Deprecated.<T> List<Future<T>>
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
isShutdown()
Deprecated.boolean
isTerminated()
Deprecated.void
shutdown()
Deprecated.List<Runnable>
shutdownNow()
Deprecated.Future<?>
submit(Runnable runnable)
Deprecated.<T> Future<T>
submit(Runnable runnable, T t)
Deprecated.<T> Future<T>
submit(Callable<T> tCallable)
Deprecated.
-
-
-
Method Detail
-
shutdown
public void shutdown()
Deprecated.- Specified by:
shutdown
in interfaceExecutorService
-
shutdownNow
public List<Runnable> 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
public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException
Deprecated.- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
submit
public <T> Future<T> submit(Callable<T> tCallable)
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
public <T> Future<T> submit(Runnable runnable, T t)
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
public Future<?> submit(Runnable runnable)
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
-
-