Table of Contents

Class KafkaFuture<T>

Namespace
Org.Apache.Kafka.Common
Assembly
MASES.KNet.dll
public class KafkaFuture<T> : Future<T>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IFuture<T>

Type Parameters

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

Constructors

KafkaFuture()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("KafkaFuture 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 KafkaFuture()

KafkaFuture(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("KafkaFuture 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 KafkaFuture(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

AllOf(params KafkaFuture<object>[])

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

Parameters

arg0 KafkaFuture<object>[]

KafkaFuture

Returns

KafkaFuture<Void>

KafkaFuture

Cancel(bool)

public bool Cancel(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

CompletedFuture<U>(U)

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

Parameters

arg0 U

U

Returns

KafkaFuture<U>

KafkaFuture

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

Exceptions

InterruptedException
ExecutionException

IsCancelled()

public bool IsCancelled()

Returns

bool

bool

IsCompletedExceptionally()

public bool IsCompletedExceptionally()

Returns

bool

bool

IsDone()

public bool IsDone()

Returns

bool

bool

ThenApply<R>(BaseFunction<T, R>)

public KafkaFuture<R> ThenApply<R>(KafkaFuture.BaseFunction<T, R> arg0)

Parameters

arg0 KafkaFuture.BaseFunction<T, R>

KafkaFuture.BaseFunction

Returns

KafkaFuture<R>

KafkaFuture

Type Parameters

R

ToCompletionStage()

public CompletionStage<T> ToCompletionStage()

Returns

CompletionStage<T>

CompletionStage

WhenComplete<Arg0objectSuperT, Arg0objectSuperJava_Lang_Throwable>(BiConsumer<Arg0objectSuperT, Arg0objectSuperJava_Lang_Throwable>)

public KafkaFuture<T> WhenComplete<Arg0objectSuperT, Arg0objectSuperJava_Lang_Throwable>(KafkaFuture.BiConsumer<Arg0objectSuperT, Arg0objectSuperJava_Lang_Throwable> arg0) where Arg0objectSuperT : T where Arg0objectSuperJava_Lang_Throwable : Throwable

Parameters

arg0 KafkaFuture.BiConsumer<Arg0objectSuperT, Arg0objectSuperJava_Lang_Throwable>

KafkaFuture.BiConsumer

Returns

KafkaFuture<T>

KafkaFuture

Type Parameters

Arg0objectSuperT

T

Arg0objectSuperJava_Lang_Throwable

Throwable

Operators

implicit operator KafkaFuture(KafkaFuture<T>)

Converter from KafkaFuture<T> to KafkaFuture

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

Parameters

t KafkaFuture<T>

Returns

KafkaFuture