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
-
JVMBridgeBase<Executor>.SExecute<TNewClass, TReturn, TConverter>(IJavaType, string, params object[])
- 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
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
AwaitTermination(long, TimeUnit)
public bool AwaitTermination(long arg0, TimeUnit arg1)
Parameters
Returns
Exceptions
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_>
Returns
Type Parameters
T
Arg0ExtendsJava_Util_Concurrent_Callable_T_
Exceptions
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_>arg1
longarg2
TimeUnit
Returns
Type Parameters
T
Arg0ExtendsJava_Util_Concurrent_Callable_T_
Exceptions
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_>
Returns
- T
T
Type Parameters
T
Arg0ExtendsJava_Util_Concurrent_Callable_T_
Exceptions
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_>arg1
longarg2
TimeUnit
Returns
- T
T
Type Parameters
T
Arg0ExtendsJava_Util_Concurrent_Callable_T_
Exceptions
IsShutdown()
public bool IsShutdown()
Returns
IsTerminated()
public bool IsTerminated()
Returns
Shutdown()
public void Shutdown()
ShutdownNow()
public List<Runnable> ShutdownNow()
Returns
Submit(Runnable)
public Future<object> Submit(Runnable arg0)
Parameters
Returns
Submit<T>(Runnable, T)
public Future<T> Submit<T>(Runnable arg0, T arg1)
Parameters
Returns
Type Parameters
T
Submit<T>(Callable<T>)
public Future<T> Submit<T>(Callable<T> arg0)
Parameters
Returns
Type Parameters
T