Table of Contents

Class ExecutorService

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class ExecutorService : Executor, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IExecutorService, IExecutor
Inheritance
ExecutorService
Implements
Derived
Inherited Members
Extension Methods

Constructors

ExecutorService()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("ExecutorService class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ExecutorService()

ExecutorService(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("ExecutorService class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ExecutorService(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AwaitTermination(long, TimeUnit)

public bool AwaitTermination(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

bool

bool

Exceptions

InterruptedException

InvokeAll<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>)

public List<Future<T>> InvokeAll<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_> arg0) where Arg0ExtendsJava_Util_Concurrent_Callable_T_ : Callable<T>

Parameters

arg0 Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>

Collection

Returns

List<Future<T>>

List

Type Parameters

T
Arg0ExtendsJava_Util_Concurrent_Callable_T_

Callable<V>

Exceptions

InterruptedException

InvokeAll<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>, long, TimeUnit)

public List<Future<T>> InvokeAll<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_> arg0, long arg1, TimeUnit arg2) where Arg0ExtendsJava_Util_Concurrent_Callable_T_ : Callable<T>

Parameters

arg0 Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>

Collection

arg1 long

long

arg2 TimeUnit

TimeUnit

Returns

List<Future<T>>

List

Type Parameters

T
Arg0ExtendsJava_Util_Concurrent_Callable_T_

Callable<V>

Exceptions

InterruptedException

InvokeAny<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>)

public T InvokeAny<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_> arg0) where Arg0ExtendsJava_Util_Concurrent_Callable_T_ : Callable<T>

Parameters

arg0 Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>

Collection

Returns

T

T

Type Parameters

T
Arg0ExtendsJava_Util_Concurrent_Callable_T_

Callable<V>

Exceptions

InterruptedException
ExecutionException

InvokeAny<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>, long, TimeUnit)

public T InvokeAny<T, Arg0ExtendsJava_Util_Concurrent_Callable_T_>(Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_> arg0, long arg1, TimeUnit arg2) where Arg0ExtendsJava_Util_Concurrent_Callable_T_ : Callable<T>

Parameters

arg0 Collection<Arg0ExtendsJava_Util_Concurrent_Callable_T_>

Collection

arg1 long

long

arg2 TimeUnit

TimeUnit

Returns

T

T

Type Parameters

T
Arg0ExtendsJava_Util_Concurrent_Callable_T_

Callable<V>

Exceptions

InterruptedException
ExecutionException
TimeoutException

IsShutdown()

public bool IsShutdown()

Returns

bool

bool

IsTerminated()

public bool IsTerminated()

Returns

bool

bool

Shutdown()

public void Shutdown()

ShutdownNow()

public List<Runnable> ShutdownNow()

Returns

List<Runnable>

List

Submit(Runnable)

public Future<object> Submit(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

Future<object>

Future

Submit<T>(Runnable, T)

public Future<T> Submit<T>(Runnable arg0, T arg1)

Parameters

arg0 Runnable

Runnable

arg1 T

T

Returns

Future<T>

Future

Type Parameters

T

Submit<T>(Callable<T>)

public Future<T> Submit<T>(Callable<T> arg0)

Parameters

arg0 Callable<T>

Callable

Returns

Future<T>

Future

Type Parameters

T