Table of Contents

Class KafkaStreams

Namespace
Org.Apache.Kafka.Streams
Assembly
MASES.KNet.dll
public class KafkaStreams : AutoCloseable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
KafkaStreams
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.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

KafkaStreams()

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

public KafkaStreams()

KafkaStreams(Topology, Properties)

public KafkaStreams(Topology arg0, Properties arg1)

Parameters

arg0 Topology

Topology

arg1 Properties

Properties

KafkaStreams(Topology, Properties, Time)

public KafkaStreams(Topology arg0, Properties arg1, Time arg2)

Parameters

arg0 Topology

Topology

arg1 Properties

Properties

arg2 Time

Time

KafkaStreams(Topology, Properties, KafkaClientSupplier)

public KafkaStreams(Topology arg0, Properties arg1, KafkaClientSupplier arg2)

Parameters

arg0 Topology

Topology

arg1 Properties

Properties

arg2 KafkaClientSupplier

KafkaClientSupplier

KafkaStreams(Topology, Properties, KafkaClientSupplier, Time)

public KafkaStreams(Topology arg0, Properties arg1, KafkaClientSupplier arg2, Time arg3)

Parameters

arg0 Topology

Topology

arg1 Properties

Properties

arg2 KafkaClientSupplier

KafkaClientSupplier

arg3 Time

Time

KafkaStreams(Topology, StreamsConfig)

public KafkaStreams(Topology arg0, StreamsConfig arg1)

Parameters

arg0 Topology

Topology

arg1 StreamsConfig

StreamsConfig

KafkaStreams(Topology, StreamsConfig, Time)

public KafkaStreams(Topology arg0, StreamsConfig arg1, Time arg2)

Parameters

arg0 Topology

Topology

arg1 StreamsConfig

StreamsConfig

arg2 Time

Time

KafkaStreams(Topology, StreamsConfig, KafkaClientSupplier)

public KafkaStreams(Topology arg0, StreamsConfig arg1, KafkaClientSupplier arg2)

Parameters

arg0 Topology

Topology

arg1 StreamsConfig

StreamsConfig

arg2 KafkaClientSupplier

KafkaClientSupplier

KafkaStreams(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 KafkaStreams(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

AddStreamThread()

public Optional<String> AddStreamThread()

Returns

Optional<String>

Optional

AllLocalStorePartitionLags()

public Map<String, Map<Integer, LagInfo>> AllLocalStorePartitionLags()

Returns

Map<String, Map<Integer, LagInfo>>

Map

CleanUp()

public void CleanUp()

ClientInstanceIds(Duration)

public ClientInstanceIds ClientInstanceIds(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

ClientInstanceIds

ClientInstanceIds

Close()

public void Close()

Close(Duration)

public bool Close(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

bool

bool

Exceptions

IllegalArgumentException

Close(CloseOptions)

public bool Close(KafkaStreams.CloseOptions arg0)

Parameters

arg0 KafkaStreams.CloseOptions

KafkaStreams.CloseOptions

Returns

bool

bool

Exceptions

IllegalArgumentException

IsPaused()

public bool IsPaused()

Returns

bool

bool

MetadataForAllStreamsClients()

public Collection<StreamsMetadata> MetadataForAllStreamsClients()

Returns

Collection<StreamsMetadata>

Collection

MetadataForLocalThreads()

public Set<ThreadMetadata> MetadataForLocalThreads()

Returns

Set<ThreadMetadata>

Set

Metrics<ReturnExtendsOrg_Apache_Kafka_Common_Metric>()

public Map<MetricName, ReturnExtendsOrg_Apache_Kafka_Common_Metric> Metrics<ReturnExtendsOrg_Apache_Kafka_Common_Metric>() where ReturnExtendsOrg_Apache_Kafka_Common_Metric : Metric

Returns

Map<MetricName, ReturnExtendsOrg_Apache_Kafka_Common_Metric>

Map

Type Parameters

ReturnExtendsOrg_Apache_Kafka_Common_Metric

Metric

Pause()

public void Pause()

QueryMetadataForKey<K>(String, K, Serializer<K>)

public KeyQueryMetadata QueryMetadataForKey<K>(String arg0, K arg1, Serializer<K> arg2)

Parameters

arg0 String

String

arg1 K

K

arg2 Serializer<K>

Serializer

Returns

KeyQueryMetadata

KeyQueryMetadata

Type Parameters

K

QueryMetadataForKey<K, Arg2objectSuperK>(String, K, StreamPartitioner<Arg2objectSuperK, object>)

public KeyQueryMetadata QueryMetadataForKey<K, Arg2objectSuperK>(String arg0, K arg1, StreamPartitioner<Arg2objectSuperK, object> arg2) where Arg2objectSuperK : K

Parameters

arg0 String

String

arg1 K

K

arg2 StreamPartitioner<Arg2objectSuperK, object>

StreamPartitioner

Returns

KeyQueryMetadata

KeyQueryMetadata

Type Parameters

K
Arg2objectSuperK

K

Query<R>(StateQueryRequest<R>)

public StateQueryResult<R> Query<R>(StateQueryRequest<R> arg0)

Parameters

arg0 StateQueryRequest<R>

StateQueryRequest

Returns

StateQueryResult<R>

StateQueryResult

Type Parameters

R

RemoveStreamThread()

public Optional<String> RemoveStreamThread()

Returns

Optional<String>

Optional

RemoveStreamThread(Duration)

public Optional<String> RemoveStreamThread(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Optional<String>

Optional

Resume()

public void Resume()

SetGlobalStateRestoreListener(StateRestoreListener)

public void SetGlobalStateRestoreListener(StateRestoreListener arg0)

Parameters

arg0 StateRestoreListener

StateRestoreListener

SetStandbyUpdateListener(StandbyUpdateListener)

public void SetStandbyUpdateListener(StandbyUpdateListener arg0)

Parameters

arg0 StandbyUpdateListener

StandbyUpdateListener

SetStateListener(StateListener)

public void SetStateListener(KafkaStreams.StateListener arg0)

Parameters

arg0 KafkaStreams.StateListener

KafkaStreams.StateListener

SetUncaughtExceptionHandler(StreamsUncaughtExceptionHandler)

public void SetUncaughtExceptionHandler(StreamsUncaughtExceptionHandler arg0)

Parameters

arg0 StreamsUncaughtExceptionHandler

StreamsUncaughtExceptionHandler

Start()

public void Start()

Exceptions

IllegalStateException
StreamsException

StateMethod()

public KafkaStreams.State StateMethod()

Returns

KafkaStreams.State

KafkaStreams.State

Store<T>(StoreQueryParameters<T>)

public T Store<T>(StoreQueryParameters<T> arg0)

Parameters

arg0 StoreQueryParameters<T>

StoreQueryParameters

Returns

T

T

Type Parameters

T

StreamsMetadataForStore(String)

public Collection<StreamsMetadata> StreamsMetadataForStore(String arg0)

Parameters

arg0 String

String

Returns

Collection<StreamsMetadata>

Collection