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 deprecated
LooperMode.LEGACY
mode. Consider using guava's MoreExecutors#directExecutor() or PausedExecutorService or InlineExecutorService.Executor service that runs all operations on the background scheduler.
-
Constructor Summary
Constructors Constructor Description RoboExecutorService()Deprecated. -
Method Summary
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.
-
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
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedExceptionDeprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedExceptionDeprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionExceptionDeprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutExceptionDeprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
execute
Deprecated.
-