Class CompletableFuture<T>
- Namespace
- Java.Util.Concurrent
- Assembly
- MASES.JNet.dll
public class CompletableFuture<T> : JVMBridgeBase<CompletableFuture<T>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
T
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<CompletableFuture<T>>CompletableFuture<T>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<CompletableFuture<T>>.SExecute<TNewClass, TReturn>(IJavaType, string, params object[])JVMBridgeBase<CompletableFuture<T>>.IsAssignableFrom(IJavaType)JVMBridgeBase<CompletableFuture<T>>.IsAssignableFrom<T>()JVMBridgeBase<CompletableFuture<T>>.Execute<T>(params T[])JVMBridgeBase<CompletableFuture<T>>.DynBridgeClazzJVMBridgeBase<CompletableFuture<T>>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
CompletableFuture()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public CompletableFuture()
CompletableFuture(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
public CompletableFuture(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
NumberOfDependents
public int NumberOfDependents { get; }
Property Value
Methods
AcceptEither(CompletionStage, Consumer)
public CompletionStage AcceptEither(CompletionStage arg0, Consumer arg1)
Parameters
arg0
CompletionStagearg1
Consumer
Returns
AcceptEitherAsync(CompletionStage, Consumer)
public CompletionStage AcceptEitherAsync(CompletionStage arg0, Consumer arg1)
Parameters
arg0
CompletionStagearg1
Consumer
Returns
AcceptEitherAsync(CompletionStage, Consumer, Executor)
public CompletionStage AcceptEitherAsync(CompletionStage arg0, Consumer arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
Consumerarg2
Executor
Returns
AllOf(params CompletableFuture<object>[])
public static CompletableFuture<Void> AllOf(params CompletableFuture<object>[] arg0)
Parameters
arg0
CompletableFuture<object>[]
Returns
AnyOfMethod(params CompletableFuture<object>[])
public static CompletableFuture<object> AnyOfMethod(params CompletableFuture<object>[] arg0)
Parameters
arg0
CompletableFuture<object>[]
Returns
ApplyToEither(CompletionStage, Function)
public CompletionStage ApplyToEither(CompletionStage arg0, Function arg1)
Parameters
arg0
CompletionStagearg1
Function
Returns
ApplyToEitherAsync(CompletionStage, Function)
public CompletionStage ApplyToEitherAsync(CompletionStage arg0, Function arg1)
Parameters
arg0
CompletionStagearg1
Function
Returns
ApplyToEitherAsync(CompletionStage, Function, Executor)
public CompletionStage ApplyToEitherAsync(CompletionStage arg0, Function arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
Functionarg2
Executor
Returns
Cancel(bool)
public bool Cancel(bool arg0)
Parameters
Returns
Complete(T)
public bool Complete(T arg0)
Parameters
arg0
TT
Returns
CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT>)
public CompletableFuture<T> CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0) where Arg0ExtendsT : T
Parameters
Returns
Type Parameters
Arg0ExtendsT
T
CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT>, Executor)
public CompletableFuture<T> CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0, Executor arg1) where Arg0ExtendsT : T
Parameters
Returns
Type Parameters
Arg0ExtendsT
T
CompleteExceptionally(JVMBridgeException)
public bool CompleteExceptionally(JVMBridgeException arg0)
Parameters
arg0
JVMBridgeException
Returns
CompleteOnTimeout(T, long, TimeUnit)
public CompletableFuture<T> CompleteOnTimeout(T arg0, long arg1, TimeUnit arg2)
Parameters
Returns
CompletedFuture<U>(U)
public static CompletableFuture<U> CompletedFuture<U>(U arg0)
Parameters
arg0
UU
Returns
Type Parameters
U
CompletedStage<U>(U)
public static CompletionStage<U> CompletedStage<U>(U arg0)
Parameters
arg0
UU
Returns
Type Parameters
U
Copy()
public CompletableFuture<T> Copy()
Returns
DefaultExecutor()
public Executor DefaultExecutor()
Returns
DelayedExecutorMethod(long, TimeUnit)
public static Executor DelayedExecutorMethod(long arg0, TimeUnit arg1)
Parameters
Returns
DelayedExecutorMethod(long, TimeUnit, Executor)
public static Executor DelayedExecutorMethod(long arg0, TimeUnit arg1, Executor arg2)
Parameters
Returns
Exceptionally(Function)
public CompletionStage Exceptionally(Function arg0)
Parameters
Returns
FailedFuture<U>(JVMBridgeException)
public static CompletableFuture<U> FailedFuture<U>(JVMBridgeException arg0)
Parameters
arg0
JVMBridgeException
Returns
Type Parameters
U
FailedStage<U>(JVMBridgeException)
public static CompletionStage<U> FailedStage<U>(JVMBridgeException arg0)
Parameters
arg0
JVMBridgeException
Returns
Type Parameters
U
Get()
public T Get()
Returns
- T
T
Exceptions
Get(long, TimeUnit)
public T Get(long arg0, TimeUnit arg1)
Parameters
Returns
- T
T
Exceptions
GetNow(T)
public T GetNow(T arg0)
Parameters
arg0
TT
Returns
- T
T
Handle(BiFunction)
public CompletionStage Handle(BiFunction arg0)
Parameters
arg0
BiFunction
Returns
HandleAsync(BiFunction)
public CompletionStage HandleAsync(BiFunction arg0)
Parameters
arg0
BiFunction
Returns
HandleAsync(BiFunction, Executor)
public CompletionStage HandleAsync(BiFunction arg0, Executor arg1)
Parameters
arg0
BiFunctionarg1
Executor
Returns
IsCancelled()
public bool IsCancelled()
Returns
IsCompletedExceptionally()
public bool IsCompletedExceptionally()
Returns
IsDone()
public bool IsDone()
Returns
Join()
public T Join()
Returns
- T
T
MinimalCompletionStage()
public CompletionStage<T> MinimalCompletionStage()
Returns
NewIncompleteFuture<U>()
public CompletableFuture<U> NewIncompleteFuture<U>()
Returns
Type Parameters
U
ObtrudeException(JVMBridgeException)
public void ObtrudeException(JVMBridgeException arg0)
Parameters
arg0
JVMBridgeException
ObtrudeValue(T)
public void ObtrudeValue(T arg0)
Parameters
arg0
TT
OrTimeout(long, TimeUnit)
public CompletableFuture<T> OrTimeout(long arg0, TimeUnit arg1)
Parameters
Returns
RunAfterBoth(CompletionStage, Runnable)
public CompletionStage RunAfterBoth(CompletionStage arg0, Runnable arg1)
Parameters
arg0
CompletionStagearg1
Runnable
Returns
RunAfterBothAsync(CompletionStage, Runnable)
public CompletionStage RunAfterBothAsync(CompletionStage arg0, Runnable arg1)
Parameters
arg0
CompletionStagearg1
Runnable
Returns
RunAfterBothAsync(CompletionStage, Runnable, Executor)
public CompletionStage RunAfterBothAsync(CompletionStage arg0, Runnable arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
Runnablearg2
Executor
Returns
RunAfterEither(CompletionStage, Runnable)
public CompletionStage RunAfterEither(CompletionStage arg0, Runnable arg1)
Parameters
arg0
CompletionStagearg1
Runnable
Returns
RunAfterEitherAsync(CompletionStage, Runnable)
public CompletionStage RunAfterEitherAsync(CompletionStage arg0, Runnable arg1)
Parameters
arg0
CompletionStagearg1
Runnable
Returns
RunAfterEitherAsync(CompletionStage, Runnable, Executor)
public CompletionStage RunAfterEitherAsync(CompletionStage arg0, Runnable arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
Runnablearg2
Executor
Returns
RunAsync(Runnable)
public static CompletableFuture<Void> RunAsync(Runnable arg0)
Parameters
Returns
RunAsync(Runnable, Executor)
public static CompletableFuture<Void> RunAsync(Runnable arg0, Executor arg1)
Parameters
Returns
SupplyAsync<U>(Supplier<U>)
public static CompletableFuture<U> SupplyAsync<U>(Supplier<U> arg0)
Parameters
Returns
Type Parameters
U
SupplyAsync<U>(Supplier<U>, Executor)
public static CompletableFuture<U> SupplyAsync<U>(Supplier<U> arg0, Executor arg1)
Parameters
Returns
Type Parameters
U
ThenAccept(Consumer)
public CompletionStage ThenAccept(Consumer arg0)
Parameters
Returns
ThenAcceptAsync(Consumer)
public CompletionStage ThenAcceptAsync(Consumer arg0)
Parameters
Returns
ThenAcceptAsync(Consumer, Executor)
public CompletionStage ThenAcceptAsync(Consumer arg0, Executor arg1)
Parameters
Returns
ThenAcceptBoth(CompletionStage, BiConsumer)
public CompletionStage ThenAcceptBoth(CompletionStage arg0, BiConsumer arg1)
Parameters
arg0
CompletionStagearg1
BiConsumer
Returns
ThenAcceptBothAsync(CompletionStage, BiConsumer)
public CompletionStage ThenAcceptBothAsync(CompletionStage arg0, BiConsumer arg1)
Parameters
arg0
CompletionStagearg1
BiConsumer
Returns
ThenAcceptBothAsync(CompletionStage, BiConsumer, Executor)
public CompletionStage ThenAcceptBothAsync(CompletionStage arg0, BiConsumer arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
BiConsumerarg2
Executor
Returns
ThenApply(Function)
public CompletionStage ThenApply(Function arg0)
Parameters
Returns
ThenApplyAsync(Function)
public CompletionStage ThenApplyAsync(Function arg0)
Parameters
Returns
ThenApplyAsync(Function, Executor)
public CompletionStage ThenApplyAsync(Function arg0, Executor arg1)
Parameters
Returns
ThenCombine(CompletionStage, BiFunction)
public CompletionStage ThenCombine(CompletionStage arg0, BiFunction arg1)
Parameters
arg0
CompletionStagearg1
BiFunction
Returns
ThenCombineAsync(CompletionStage, BiFunction)
public CompletionStage ThenCombineAsync(CompletionStage arg0, BiFunction arg1)
Parameters
arg0
CompletionStagearg1
BiFunction
Returns
ThenCombineAsync(CompletionStage, BiFunction, Executor)
public CompletionStage ThenCombineAsync(CompletionStage arg0, BiFunction arg1, Executor arg2)
Parameters
arg0
CompletionStagearg1
BiFunctionarg2
Executor
Returns
ThenCompose(Function)
public CompletionStage ThenCompose(Function arg0)
Parameters
Returns
ThenComposeAsync(Function)
public CompletionStage ThenComposeAsync(Function arg0)
Parameters
Returns
ThenComposeAsync(Function, Executor)
public CompletionStage ThenComposeAsync(Function arg0, Executor arg1)
Parameters
Returns
ThenRun(Runnable)
public CompletionStage ThenRun(Runnable arg0)
Parameters
Returns
ThenRunAsync(Runnable)
public CompletionStage ThenRunAsync(Runnable arg0)
Parameters
Returns
ThenRunAsync(Runnable, Executor)
public CompletionStage ThenRunAsync(Runnable arg0, Executor arg1)
Parameters
Returns
ToCompletableFuture()
public CompletableFuture<T> ToCompletableFuture()
Returns
WhenComplete(BiConsumer)
public CompletionStage WhenComplete(BiConsumer arg0)
Parameters
arg0
BiConsumer
Returns
WhenCompleteAsync(BiConsumer)
public CompletionStage WhenCompleteAsync(BiConsumer arg0)
Parameters
arg0
BiConsumer
Returns
WhenCompleteAsync(BiConsumer, Executor)
public CompletionStage WhenCompleteAsync(BiConsumer arg0, Executor arg1)
Parameters
arg0
BiConsumerarg1
Executor
Returns
Operators
implicit operator CompletableFuture(CompletableFuture<T>)
Converter from CompletableFuture<T> to CompletableFuture
public static implicit operator CompletableFuture(CompletableFuture<T> t)
Parameters
t
CompletableFuture<T>
Returns
implicit operator CompletionStage<T>(CompletableFuture<T>)
Converter from CompletableFuture<T> to CompletionStage<T>
public static implicit operator CompletionStage<T>(CompletableFuture<T> t)
Parameters
t
CompletableFuture<T>
Returns
implicit operator Future(CompletableFuture<T>)
Converter from CompletableFuture<T> to Future
public static implicit operator Future(CompletableFuture<T> t)
Parameters
t
CompletableFuture<T>