Table of Contents

Class CompletableFuture

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class CompletableFuture : JVMBridgeBase<CompletableFuture>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<CompletableFuture>
CompletableFuture
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<CompletableFuture>.IsAssignableFrom(IJavaType)
JVMBridgeBase<CompletableFuture>.IsAssignableFrom<T>()
JVMBridgeBase<CompletableFuture>.Execute<T>(params T[])
JVMBridgeBase<CompletableFuture>.DynBridgeClazz
JVMBridgeBase<CompletableFuture>.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[])

public static CompletableFuture AllOf(params CompletableFuture[] arg0)

Parameters

arg0 CompletableFuture[]

CompletableFuture

Returns

CompletableFuture

CompletableFuture

AnyOfMethod(params CompletableFuture[])

public static CompletableFuture AnyOfMethod(params CompletableFuture[] arg0)

Parameters

arg0 CompletableFuture[]

CompletableFuture

Returns

CompletableFuture

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(object)

public bool Complete(object arg0)

Parameters

arg0 object

object

Returns

bool

bool

CompleteAsync(Supplier)

public CompletableFuture CompleteAsync(Supplier arg0)

Parameters

arg0 Supplier

Supplier

Returns

CompletableFuture

CompletableFuture

CompleteAsync(Supplier, Executor)

public CompletableFuture CompleteAsync(Supplier arg0, Executor arg1)

Parameters

arg0 Supplier

Supplier

arg1 Executor

Executor

Returns

CompletableFuture

CompletableFuture

CompleteExceptionally(JVMBridgeException)

public bool CompleteExceptionally(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

bool

bool

CompleteOnTimeout(object, long, TimeUnit)

public CompletableFuture CompleteOnTimeout(object arg0, long arg1, TimeUnit arg2)

Parameters

arg0 object

object

arg1 long

long

arg2 TimeUnit

TimeUnit

Returns

CompletableFuture

CompletableFuture

CompletedFuture(object)

public static CompletableFuture CompletedFuture(object arg0)

Parameters

arg0 object

object

Returns

CompletableFuture

CompletableFuture

CompletedStage(object)

public static CompletionStage CompletedStage(object arg0)

Parameters

arg0 object

object

Returns

CompletionStage

CompletionStage

Copy()

public CompletableFuture Copy()

Returns

CompletableFuture

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(JVMBridgeException)

public static CompletableFuture FailedFuture(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

CompletableFuture

CompletableFuture

FailedStage(JVMBridgeException)

public static CompletionStage FailedStage(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Returns

CompletionStage

CompletionStage

Get()

public object Get()

Returns

object

object

Exceptions

InterruptedException
ExecutionException

Get(long, TimeUnit)

public object Get(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

object

object

Exceptions

InterruptedException
ExecutionException
TimeoutException

GetNow(object)

public object GetNow(object arg0)

Parameters

arg0 object

object

Returns

object

object

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 object Join()

Returns

object

object

MinimalCompletionStage()

public CompletionStage MinimalCompletionStage()

Returns

CompletionStage

CompletionStage

NewIncompleteFuture()

public CompletableFuture NewIncompleteFuture()

Returns

CompletableFuture

CompletableFuture

ObtrudeException(JVMBridgeException)

public void ObtrudeException(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

ObtrudeValue(object)

public void ObtrudeValue(object arg0)

Parameters

arg0 object

object

OrTimeout(long, TimeUnit)

public CompletableFuture OrTimeout(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

CompletableFuture

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 RunAsync(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

CompletableFuture

CompletableFuture

RunAsync(Runnable, Executor)

public static CompletableFuture RunAsync(Runnable arg0, Executor arg1)

Parameters

arg0 Runnable

Runnable

arg1 Executor

Executor

Returns

CompletableFuture

CompletableFuture

SupplyAsync(Supplier)

public static CompletableFuture SupplyAsync(Supplier arg0)

Parameters

arg0 Supplier

Supplier

Returns

CompletableFuture

CompletableFuture

SupplyAsync(Supplier, Executor)

public static CompletableFuture SupplyAsync(Supplier arg0, Executor arg1)

Parameters

arg0 Supplier

Supplier

arg1 Executor

Executor

Returns

CompletableFuture

CompletableFuture

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 ToCompletableFuture()

Returns

CompletableFuture

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 CompletionStage(CompletableFuture)

public static implicit operator CompletionStage(CompletableFuture t)

Parameters

t CompletableFuture

Returns

CompletionStage

implicit operator Future(CompletableFuture)

Converter from CompletableFuture to Future

public static implicit operator Future(CompletableFuture t)

Parameters

t CompletableFuture

Returns

Future