Table of Contents

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
JVMBridgeBase
JVMBridgeBase<CompletableFuture<T>>
CompletableFuture<T>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<CompletableFuture<T>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<CompletableFuture<T>>.IsAssignableFrom<T>()
JVMBridgeBase<CompletableFuture<T>>.Execute<T>(params T[])
JVMBridgeBase<CompletableFuture<T>>.DynBridgeClazz
JVMBridgeBase<CompletableFuture<T>>.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

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

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

NumberOfDependents

public int NumberOfDependents { get; }

Property Value

int

Methods

AcceptEither(CompletionStage, Consumer)

public CompletionStage AcceptEither(CompletionStage arg0, Consumer arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Consumer

Consumer

Returns

CompletionStage

CompletionStage

AcceptEitherAsync(CompletionStage, Consumer)

public CompletionStage AcceptEitherAsync(CompletionStage arg0, Consumer arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Consumer

Consumer

Returns

CompletionStage

CompletionStage

AcceptEitherAsync(CompletionStage, Consumer, Executor)

public CompletionStage AcceptEitherAsync(CompletionStage arg0, Consumer arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Consumer

Consumer

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

AllOf(params CompletableFuture<object>[])

public static CompletableFuture<Void> AllOf(params CompletableFuture<object>[] arg0)

Parameters

arg0 CompletableFuture<object>[]

CompletableFuture

Returns

CompletableFuture<Void>

CompletableFuture

AnyOfMethod(params CompletableFuture<object>[])

public static CompletableFuture<object> AnyOfMethod(params CompletableFuture<object>[] arg0)

Parameters

arg0 CompletableFuture<object>[]

CompletableFuture

Returns

CompletableFuture<object>

CompletableFuture

ApplyToEither(CompletionStage, Function)

public CompletionStage ApplyToEither(CompletionStage arg0, Function arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Function

Function

Returns

CompletionStage

CompletionStage

ApplyToEitherAsync(CompletionStage, Function)

public CompletionStage ApplyToEitherAsync(CompletionStage arg0, Function arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Function

Function

Returns

CompletionStage

CompletionStage

ApplyToEitherAsync(CompletionStage, Function, Executor)

public CompletionStage ApplyToEitherAsync(CompletionStage arg0, Function arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Function

Function

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

Cancel(bool)

public bool Cancel(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

Complete(T)

public bool Complete(T arg0)

Parameters

arg0 T

T

Returns

bool

bool

CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT>)

public CompletableFuture<T> CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Supplier<Arg0ExtendsT>

Supplier

Returns

CompletableFuture<T>

CompletableFuture

Type Parameters

Arg0ExtendsT

T

CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT>, Executor)

public CompletableFuture<T> CompleteAsync<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0, Executor arg1) where Arg0ExtendsT : T

Parameters

arg0 Supplier<Arg0ExtendsT>

Supplier

arg1 Executor

Executor

Returns

CompletableFuture<T>

CompletableFuture

Type Parameters

Arg0ExtendsT

T

CompleteExceptionally(JVMBridgeException)

public bool CompleteExceptionally(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

bool

bool

CompleteOnTimeout(T, long, TimeUnit)

public CompletableFuture<T> CompleteOnTimeout(T arg0, long arg1, TimeUnit arg2)

Parameters

arg0 T

T

arg1 long

long

arg2 TimeUnit

TimeUnit

Returns

CompletableFuture<T>

CompletableFuture

CompletedFuture<U>(U)

public static CompletableFuture<U> CompletedFuture<U>(U arg0)

Parameters

arg0 U

U

Returns

CompletableFuture<U>

CompletableFuture

Type Parameters

U

CompletedStage<U>(U)

public static CompletionStage<U> CompletedStage<U>(U arg0)

Parameters

arg0 U

U

Returns

CompletionStage<U>

CompletionStage

Type Parameters

U

Copy()

public CompletableFuture<T> Copy()

Returns

CompletableFuture<T>

CompletableFuture

DefaultExecutor()

public Executor DefaultExecutor()

Returns

Executor

Executor

DelayedExecutorMethod(long, TimeUnit)

public static Executor DelayedExecutorMethod(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

Executor

Executor

DelayedExecutorMethod(long, TimeUnit, Executor)

public static Executor DelayedExecutorMethod(long arg0, TimeUnit arg1, Executor arg2)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

arg2 Executor

Executor

Returns

Executor

Executor

Exceptionally(Function)

public CompletionStage Exceptionally(Function arg0)

Parameters

arg0 Function

Function

Returns

CompletionStage

CompletionStage

FailedFuture<U>(JVMBridgeException)

public static CompletableFuture<U> FailedFuture<U>(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

CompletableFuture<U>

CompletableFuture

Type Parameters

U

FailedStage<U>(JVMBridgeException)

public static CompletionStage<U> FailedStage<U>(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

CompletionStage<U>

CompletionStage

Type Parameters

U

Get()

public T Get()

Returns

T

T

Exceptions

InterruptedException
ExecutionException

Get(long, TimeUnit)

public T Get(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

T

T

Exceptions

InterruptedException
ExecutionException
TimeoutException

GetNow(T)

public T GetNow(T arg0)

Parameters

arg0 T

T

Returns

T

T

Handle(BiFunction)

public CompletionStage Handle(BiFunction arg0)

Parameters

arg0 BiFunction

BiFunction

Returns

CompletionStage

CompletionStage

HandleAsync(BiFunction)

public CompletionStage HandleAsync(BiFunction arg0)

Parameters

arg0 BiFunction

BiFunction

Returns

CompletionStage

CompletionStage

HandleAsync(BiFunction, Executor)

public CompletionStage HandleAsync(BiFunction arg0, Executor arg1)

Parameters

arg0 BiFunction

BiFunction

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

IsCancelled()

public bool IsCancelled()

Returns

bool

bool

IsCompletedExceptionally()

public bool IsCompletedExceptionally()

Returns

bool

bool

IsDone()

public bool IsDone()

Returns

bool

bool

Join()

public T Join()

Returns

T

T

MinimalCompletionStage()

public CompletionStage<T> MinimalCompletionStage()

Returns

CompletionStage<T>

CompletionStage

NewIncompleteFuture<U>()

public CompletableFuture<U> NewIncompleteFuture<U>()

Returns

CompletableFuture<U>

CompletableFuture

Type Parameters

U

ObtrudeException(JVMBridgeException)

public void ObtrudeException(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

ObtrudeValue(T)

public void ObtrudeValue(T arg0)

Parameters

arg0 T

T

OrTimeout(long, TimeUnit)

public CompletableFuture<T> OrTimeout(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

CompletableFuture<T>

CompletableFuture

RunAfterBoth(CompletionStage, Runnable)

public CompletionStage RunAfterBoth(CompletionStage arg0, Runnable arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

Returns

CompletionStage

CompletionStage

RunAfterBothAsync(CompletionStage, Runnable)

public CompletionStage RunAfterBothAsync(CompletionStage arg0, Runnable arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

Returns

CompletionStage

CompletionStage

RunAfterBothAsync(CompletionStage, Runnable, Executor)

public CompletionStage RunAfterBothAsync(CompletionStage arg0, Runnable arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

RunAfterEither(CompletionStage, Runnable)

public CompletionStage RunAfterEither(CompletionStage arg0, Runnable arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

Returns

CompletionStage

CompletionStage

RunAfterEitherAsync(CompletionStage, Runnable)

public CompletionStage RunAfterEitherAsync(CompletionStage arg0, Runnable arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

Returns

CompletionStage

CompletionStage

RunAfterEitherAsync(CompletionStage, Runnable, Executor)

public CompletionStage RunAfterEitherAsync(CompletionStage arg0, Runnable arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 Runnable

Runnable

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

RunAsync(Runnable)

public static CompletableFuture<Void> RunAsync(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

CompletableFuture<Void>

CompletableFuture

RunAsync(Runnable, Executor)

public static CompletableFuture<Void> RunAsync(Runnable arg0, Executor arg1)

Parameters

arg0 Runnable

Runnable

arg1 Executor

Executor

Returns

CompletableFuture<Void>

CompletableFuture

SupplyAsync<U>(Supplier<U>)

public static CompletableFuture<U> SupplyAsync<U>(Supplier<U> arg0)

Parameters

arg0 Supplier<U>

Supplier

Returns

CompletableFuture<U>

CompletableFuture

Type Parameters

U

SupplyAsync<U>(Supplier<U>, Executor)

public static CompletableFuture<U> SupplyAsync<U>(Supplier<U> arg0, Executor arg1)

Parameters

arg0 Supplier<U>

Supplier

arg1 Executor

Executor

Returns

CompletableFuture<U>

CompletableFuture

Type Parameters

U

ThenAccept(Consumer)

public CompletionStage ThenAccept(Consumer arg0)

Parameters

arg0 Consumer

Consumer

Returns

CompletionStage

CompletionStage

ThenAcceptAsync(Consumer)

public CompletionStage ThenAcceptAsync(Consumer arg0)

Parameters

arg0 Consumer

Consumer

Returns

CompletionStage

CompletionStage

ThenAcceptAsync(Consumer, Executor)

public CompletionStage ThenAcceptAsync(Consumer arg0, Executor arg1)

Parameters

arg0 Consumer

Consumer

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

ThenAcceptBoth(CompletionStage, BiConsumer)

public CompletionStage ThenAcceptBoth(CompletionStage arg0, BiConsumer arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiConsumer

BiConsumer

Returns

CompletionStage

CompletionStage

ThenAcceptBothAsync(CompletionStage, BiConsumer)

public CompletionStage ThenAcceptBothAsync(CompletionStage arg0, BiConsumer arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiConsumer

BiConsumer

Returns

CompletionStage

CompletionStage

ThenAcceptBothAsync(CompletionStage, BiConsumer, Executor)

public CompletionStage ThenAcceptBothAsync(CompletionStage arg0, BiConsumer arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiConsumer

BiConsumer

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

ThenApply(Function)

public CompletionStage ThenApply(Function arg0)

Parameters

arg0 Function

Function

Returns

CompletionStage

CompletionStage

ThenApplyAsync(Function)

public CompletionStage ThenApplyAsync(Function arg0)

Parameters

arg0 Function

Function

Returns

CompletionStage

CompletionStage

ThenApplyAsync(Function, Executor)

public CompletionStage ThenApplyAsync(Function arg0, Executor arg1)

Parameters

arg0 Function

Function

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

ThenCombine(CompletionStage, BiFunction)

public CompletionStage ThenCombine(CompletionStage arg0, BiFunction arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiFunction

BiFunction

Returns

CompletionStage

CompletionStage

ThenCombineAsync(CompletionStage, BiFunction)

public CompletionStage ThenCombineAsync(CompletionStage arg0, BiFunction arg1)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiFunction

BiFunction

Returns

CompletionStage

CompletionStage

ThenCombineAsync(CompletionStage, BiFunction, Executor)

public CompletionStage ThenCombineAsync(CompletionStage arg0, BiFunction arg1, Executor arg2)

Parameters

arg0 CompletionStage

CompletionStage

arg1 BiFunction

BiFunction

arg2 Executor

Executor

Returns

CompletionStage

CompletionStage

ThenCompose(Function)

public CompletionStage ThenCompose(Function arg0)

Parameters

arg0 Function

Function

Returns

CompletionStage

CompletionStage

ThenComposeAsync(Function)

public CompletionStage ThenComposeAsync(Function arg0)

Parameters

arg0 Function

Function

Returns

CompletionStage

CompletionStage

ThenComposeAsync(Function, Executor)

public CompletionStage ThenComposeAsync(Function arg0, Executor arg1)

Parameters

arg0 Function

Function

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

ThenRun(Runnable)

public CompletionStage ThenRun(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

CompletionStage

CompletionStage

ThenRunAsync(Runnable)

public CompletionStage ThenRunAsync(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

CompletionStage

CompletionStage

ThenRunAsync(Runnable, Executor)

public CompletionStage ThenRunAsync(Runnable arg0, Executor arg1)

Parameters

arg0 Runnable

Runnable

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

ToCompletableFuture()

public CompletableFuture<T> ToCompletableFuture()

Returns

CompletableFuture<T>

CompletableFuture

WhenComplete(BiConsumer)

public CompletionStage WhenComplete(BiConsumer arg0)

Parameters

arg0 BiConsumer

BiConsumer

Returns

CompletionStage

CompletionStage

WhenCompleteAsync(BiConsumer)

public CompletionStage WhenCompleteAsync(BiConsumer arg0)

Parameters

arg0 BiConsumer

BiConsumer

Returns

CompletionStage

CompletionStage

WhenCompleteAsync(BiConsumer, Executor)

public CompletionStage WhenCompleteAsync(BiConsumer arg0, Executor arg1)

Parameters

arg0 BiConsumer

BiConsumer

arg1 Executor

Executor

Returns

CompletionStage

CompletionStage

Operators

implicit operator CompletableFuture(CompletableFuture<T>)

public static implicit operator CompletableFuture(CompletableFuture<T> t)

Parameters

t CompletableFuture<T>

Returns

CompletableFuture

implicit operator CompletionStage<T>(CompletableFuture<T>)

public static implicit operator CompletionStage<T>(CompletableFuture<T> t)

Parameters

t CompletableFuture<T>

Returns

CompletionStage<T>

implicit operator Future(CompletableFuture<T>)

Converter from CompletableFuture<T> to Future

public static implicit operator Future(CompletableFuture<T> t)

Parameters

t CompletableFuture<T>

Returns

Future