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
JVMBridgeBase
JVMBridgeBase<Executor>
ExecutorService
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Executor>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Executor>.IsAssignableFrom<T>()
JVMBridgeBase<Executor>.Execute<T>(params T[])
JVMBridgeBase<Executor>.DynBridgeClazz
JVMBridgeBase<Executor>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

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