C# 클래스 Brod.Producers.Producer

상속: IDisposable
파일 보기 프로젝트 열기: paralect/brod 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
Producer ( String brokerAddress ) : System

Constructs Producer with specified broker address

Send ( String topic, String message ) : void

Send text message to specified topic, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.

Send ( String topic, String message, Encoding encoding ) : void

Send text message to specified topic, using specified encoding. Partition will be selected by Partitioner of this producer.

Send ( String topic, String message, Object key ) : void

Send text message to specified topic with specified key, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.

Send ( String topic, String message, Object key, Encoding encoding ) : void

Send text message to specified topic with specified key, using specified encoding.

Send ( String topic, String message, Object key, IPartitioner partitioner ) : void

Send text message to specified topic with specified key, using default UTF-8 encoding and specified partitioner

Send ( String topic, String message, Object key, IPartitioner partitioner, Encoding encoding ) : void

Send text message to specified topic with specified key, using specified encoding and partitioner.

Send ( String topic, byte payload ) : void

Send binary message to specified topic. Partition will be selected by Partitioner of this producer.

Send ( String topic, byte payload, Object key ) : void

Send binary message to specified topic with specified key. Partition will be selected by Partitioner of this producer.

Send ( String topic, byte payload, Object key, IPartitioner partitioner ) : void

Send binary message to specified topic with specified key, using specified partitioner.

비공개 메소드들

메소드 설명
GetNumberOfPartitionsForTopic ( String topic ) : Int32

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Producer() 공개 메소드

Constructs Producer with specified broker address
public Producer ( String brokerAddress ) : System
brokerAddress String
리턴 System

Send() 공개 메소드

Send text message to specified topic, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.
public Send ( String topic, String message ) : void
topic String
message String
리턴 void

Send() 공개 메소드

Send text message to specified topic, using specified encoding. Partition will be selected by Partitioner of this producer.
public Send ( String topic, String message, Encoding encoding ) : void
topic String
message String
encoding System.Text.Encoding
리턴 void

Send() 공개 메소드

Send text message to specified topic with specified key, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.
public Send ( String topic, String message, Object key ) : void
topic String
message String
key Object
리턴 void

Send() 공개 메소드

Send text message to specified topic with specified key, using specified encoding.
public Send ( String topic, String message, Object key, Encoding encoding ) : void
topic String
message String
key Object
encoding System.Text.Encoding
리턴 void

Send() 공개 메소드

Send text message to specified topic with specified key, using default UTF-8 encoding and specified partitioner
public Send ( String topic, String message, Object key, IPartitioner partitioner ) : void
topic String
message String
key Object
partitioner IPartitioner
리턴 void

Send() 공개 메소드

Send text message to specified topic with specified key, using specified encoding and partitioner.
public Send ( String topic, String message, Object key, IPartitioner partitioner, Encoding encoding ) : void
topic String
message String
key Object
partitioner IPartitioner
encoding System.Text.Encoding
리턴 void

Send() 공개 메소드

Send binary message to specified topic. Partition will be selected by Partitioner of this producer.
public Send ( String topic, byte payload ) : void
topic String
payload byte
리턴 void

Send() 공개 메소드

Send binary message to specified topic with specified key. Partition will be selected by Partitioner of this producer.
public Send ( String topic, byte payload, Object key ) : void
topic String
payload byte
key Object
리턴 void

Send() 공개 메소드

Send binary message to specified topic with specified key, using specified partitioner.
public Send ( String topic, byte payload, Object key, IPartitioner partitioner ) : void
topic String
payload byte
key Object
partitioner IPartitioner
리턴 void