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.LEGACYmode. Consider using guava'sMoreExecutors#directExecutor()orPausedExecutorServiceorInlineExecutorService.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 booleanawaitTermination(long l, TimeUnit timeUnit)Deprecated.voidexecute(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> TinvokeAny(Collection<? extends Callable<T>> callables)Deprecated.<T> TinvokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit)Deprecated.booleanisShutdown()Deprecated.booleanisTerminated()Deprecated.voidshutdown()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:
shutdownin interfaceExecutorService
-
shutdownNow
public List<Runnable> 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
public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedExceptionDeprecated.- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
submit
public <T> Future<T> submit(Callable<T> tCallable)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
public <T> Future<T> submit(Runnable runnable, T t)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
public Future<?> submit(Runnable runnable)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedException
Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException
Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException
Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-