IExecutorService IExecutorService Interface

Definition

An IExecutor that provides methods to manage termination and methods that can produce a IFuture for tracking progress of one or more asynchronous tasks.

[Android.Runtime.Register("java/util/concurrent/ExecutorService", "", "Java.Util.Concurrent.IExecutorServiceInvoker", ApiSince=1)]
public interface IExecutorService : IDisposable, Java.Util.Concurrent.IExecutor
type IExecutorService = interface
    interface IExecutor
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsShutdown IsShutdown

Returns true if this executor has been shut down.

IsTerminated IsTerminated

Returns true if all tasks have completed following shut down.

Methods

AwaitTermination(Int64, TimeUnit) AwaitTermination(Int64, TimeUnit)

Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.

Execute(IRunnable) Execute(IRunnable)

Executes the given command at some time in the future.

(Inherited from IExecutor)
InvokeAll(ICollection) InvokeAll(ICollection)
InvokeAll(ICollection, Int64, TimeUnit) InvokeAll(ICollection, Int64, TimeUnit)
InvokeAny(ICollection) InvokeAny(ICollection)
InvokeAny(ICollection, Int64, TimeUnit) InvokeAny(ICollection, Int64, TimeUnit)
Shutdown() Shutdown()

Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.

ShutdownNow() ShutdownNow()

Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.

Submit(ICallable) Submit(ICallable)
Submit(IRunnable) Submit(IRunnable)

Submits a Runnable task for execution and returns a Future representing that task.

Submit(IRunnable, Object) Submit(IRunnable, Object)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
AwaitTerminationAsync(IExecutorService, Int64, TimeUnit) AwaitTerminationAsync(IExecutorService, Int64, TimeUnit)
InvokeAnyAsync(IExecutorService, ICollection) InvokeAnyAsync(IExecutorService, ICollection)
InvokeAnyAsync(IExecutorService, ICollection, Int64, TimeUnit) InvokeAnyAsync(IExecutorService, ICollection, Int64, TimeUnit)

Applies to