Table of Contents

Interface IProducer<K, V, TJVMK, TJVMV>

Namespace
MASES.KNet.Producer
Assembly
MASES.KNet.dll

Extends IProducer<K, V> adding less intrusive methods which performs better in high throughput applications

public interface IProducer<K, V, TJVMK, TJVMV> : IProducer<TJVMK, TJVMV>, IProducer, IJVMBridgeBase, IJVMBridgeDefinition, IDisposable, ICloseable, IAutoCloseable

Type Parameters

K

Same meaning of IProducer<K, V>

V

Same meaning of IProducer<K, V>

TJVMK

The JVM type of K

TJVMV

The JVM type of V

Inherited Members
IJVMBridgeBase.MonitorEnter()
IJVMBridgeBase.MonitorExit()
IJVMBridgeBase.IsInstanceOf(IJavaType)
IJVMBridgeBase.IsInstanceOf<T>()
IJVMBridgeBase.RuntimeIsInstanceOf<T>()
IJVMBridgeBase.CastTo<TNewClass>()
IJVMBridgeBase.CastDirect<TNewClass>()
IJVMBridgeBase.DynBridgeInstance
IJVMBridgeBase.BridgeInstance
IJVMBridgeDefinition.BridgeClassName
IJVMBridgeDefinition.IsBridgeInterface
IJVMBridgeDefinition.IsBridgeAbstract
IJVMBridgeDefinition.IsBridgeStatic
IJVMBridgeDefinition.IsBridgeCloseable
IJVMBridgeDefinition.IsBridgeListener
Extension Methods

Methods

NewRecord()

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord()

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, DateTime, K, V)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, DateTime timestamp, K key, V value)

Parameters

topic string
partition int
timestamp DateTime
key K
value V

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, DateTime, K, V, Headers)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, DateTime timestamp, K key, V value, Headers headers)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
headers Headers

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, long, K, V)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, long timestamp, K key, V value)

Parameters

topic string
partition int
timestamp long
key K
value V

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, long, K, V, Headers)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, long timestamp, K key, V value, Headers headers)

Parameters

topic string
partition int
timestamp long
key K
value V
headers Headers

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, K, V)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, K key, V value)

Parameters

topic string
partition int
key K
value V

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, int, K, V, Headers)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, int partition, K key, V value, Headers headers)

Parameters

topic string
partition int
key K
value V
headers Headers

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, K, V)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, K key, V value)

Parameters

topic string
key K
value V

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

NewRecord(string, V)

ProducerRecord<K, V, TJVMK, TJVMV> NewRecord(string topic, V value)

Parameters

topic string
value V

Returns

ProducerRecord<K, V, TJVMK, TJVMV>

Produce(ProducerRecord<K, V, TJVMK, TJVMV>, Callback)

Future<RecordMetadata> Produce(ProducerRecord<K, V, TJVMK, TJVMV> record, Callback cb = null)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>
cb Callback

Returns

Future<RecordMetadata>

Produce(ProducerRecord<K, V, TJVMK, TJVMV>, Action<RecordMetadata, JVMBridgeException>)

void Produce(ProducerRecord<K, V, TJVMK, TJVMV> record, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>
action Action<RecordMetadata, JVMBridgeException>

Produce(string, int, DateTime, K, V, Callback)

Future<RecordMetadata> Produce(string topic, int partition, DateTime timestamp, K key, V value, Callback cb = null)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
cb Callback

Returns

Future<RecordMetadata>

Produce(string, int, DateTime, K, V, Action<RecordMetadata, JVMBridgeException>)

void Produce(string topic, int partition, DateTime timestamp, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Produce(string, int, long, K, V, Callback)

Future<RecordMetadata> Produce(string topic, int partition, long timestamp, K key, V value, Callback cb = null)

Parameters

topic string
partition int
timestamp long
key K
value V
cb Callback

Returns

Future<RecordMetadata>

Produce(string, int, long, K, V, Action<RecordMetadata, JVMBridgeException>)

void Produce(string topic, int partition, long timestamp, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
timestamp long
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Produce(string, int, K, V, Callback)

Future<RecordMetadata> Produce(string topic, int partition, K key, V value, Callback cb = null)

Parameters

topic string
partition int
key K
value V
cb Callback

Returns

Future<RecordMetadata>

Produce(string, int, K, V, Action<RecordMetadata, JVMBridgeException>)

void Produce(string topic, int partition, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Produce(string, K, V, Callback)

Future<RecordMetadata> Produce(string topic, K key, V value, Callback cb = null)

Parameters

topic string
key K
value V
cb Callback

Returns

Future<RecordMetadata>

Produce(string, K, V, Action<RecordMetadata, JVMBridgeException>)

void Produce(string topic, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
key K
value V
action Action<RecordMetadata, JVMBridgeException>

ProduceAndWait(ProducerRecord<K, V, TJVMK, TJVMV>, Callback)

void ProduceAndWait(ProducerRecord<K, V, TJVMK, TJVMV> record, Callback cb = null)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>
cb Callback

ProduceAndWait(string, int, DateTime, K, V, Callback)

void ProduceAndWait(string topic, int partition, DateTime timestamp, K key, V value, Callback cb = null)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
cb Callback

ProduceAndWait(string, int, long, K, V, Callback)

void ProduceAndWait(string topic, int partition, long timestamp, K key, V value, Callback cb = null)

Parameters

topic string
partition int
timestamp long
key K
value V
cb Callback

ProduceAndWait(string, int, K, V, Callback)

void ProduceAndWait(string topic, int partition, K key, V value, Callback cb = null)

Parameters

topic string
partition int
key K
value V
cb Callback

ProduceAndWait(string, K, V, Callback)

void ProduceAndWait(string topic, K key, V value, Callback cb = null)

Parameters

topic string
key K
value V
cb Callback

ProduceAsync(ProducerRecord<K, V, TJVMK, TJVMV>, Action<RecordMetadata, JVMBridgeException>)

Task ProduceAsync(ProducerRecord<K, V, TJVMK, TJVMV> record, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>
action Action<RecordMetadata, JVMBridgeException>

Returns

Task

ProduceAsync(string, int, DateTime, K, V, Action<RecordMetadata, JVMBridgeException>)

Task ProduceAsync(string topic, int partition, DateTime timestamp, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
timestamp DateTime
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Returns

Task

ProduceAsync(string, int, long, K, V, Action<RecordMetadata, JVMBridgeException>)

Task ProduceAsync(string topic, int partition, long timestamp, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
timestamp long
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Returns

Task

ProduceAsync(string, int, K, V, Action<RecordMetadata, JVMBridgeException>)

Task ProduceAsync(string topic, int partition, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
partition int
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Returns

Task

ProduceAsync(string, K, V, Action<RecordMetadata, JVMBridgeException>)

Task ProduceAsync(string topic, K key, V value, Action<RecordMetadata, JVMBridgeException> action = null)

Parameters

topic string
key K
value V
action Action<RecordMetadata, JVMBridgeException>

Returns

Task

Send(ProducerRecord<K, V, TJVMK, TJVMV>)

Future<RecordMetadata> Send(ProducerRecord<K, V, TJVMK, TJVMV> record)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>

Returns

Future<RecordMetadata>

Send(ProducerRecord<K, V, TJVMK, TJVMV>, Callback)

Future<RecordMetadata> Send(ProducerRecord<K, V, TJVMK, TJVMV> record, Callback callback)

Parameters

record ProducerRecord<K, V, TJVMK, TJVMV>
callback Callback

Returns

Future<RecordMetadata>

Send(string, int, long, K, V)

void Send(string topic, int partition, long timestamp, K key, V value)

Parameters

topic string
partition int
timestamp long
key K
value V

Send(string, int, long, K, V, Headers)

void Send(string topic, int partition, long timestamp, K key, V value, Headers headers)

Parameters

topic string
partition int
timestamp long
key K
value V
headers Headers

Send(string, int, K, V)

void Send(string topic, int partition, K key, V value)

Parameters

topic string
partition int
key K
value V

Send(string, int, K, V, Headers)

void Send(string topic, int partition, K key, V value, Headers headers)

Parameters

topic string
partition int
key K
value V
headers Headers

Send(string, K, V)

void Send(string topic, K key, V value)

Parameters

topic string
key K
value V

Send(string, V)

void Send(string topic, V value)

Parameters

topic string
value V

SetCallback(Callback)

Set Callback into instance of IProducer<K, V>

void SetCallback(Callback callback)

Parameters

callback Callback

The Callback