C# 클래스 Streamiz.Kafka.Net.Mock.TestOutputTopic

TestOutputTopic{K, V} is used to read records from a topic in TopologyTestDriver and it's NOT THREADSAFE. To use TestOutputTopic{K, V} create a new instance via TopologyTestDriver.CreateOuputTopic{K, V}(string). In actual test code, you can read record values, keys, keyvalue or list of keyvalue. If you have multiple source topics, you need to create a TestOutputTopic{K, V} for each. Processing records var outputTopic = builder.CreateOuputTopic<string, string>("test-output", TimeSpan.FromSeconds(5)); var kv = outputTopic.ReadKeyValue(); DO ASSERT HERE
파일 보기 프로젝트 열기: LGouellec/kafka-streams-dotnet 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ReadRecord V>.ConsumeResult
TestOutputTopic Confluent.Kafka
TestOutputTopic Confluent.Kafka

공개 메소드들

메소드 설명
ReadKeyValue ( ) : V>.ConsumeResult

Read one record from the output topic and return its key and value as pair.

ReadKeyValueList ( ) : V>>.IEnumerable

Read all records from topic to List.

ReadValue ( ) : V

Read one record from the output topic and return record's value.

ReadValueList ( ) : IEnumerable

Read all values from topic to List.

비공개 메소드들

메소드 설명
ReadRecord ( ) : V>.ConsumeResult
TestOutputTopic ( ) : Confluent.Kafka
TestOutputTopic ( IPipeOutput pipe, IStreamConfig configuration, ISerDes keySerdes, ISerDes valueSerdes ) : Confluent.Kafka

메소드 상세

ReadKeyValue() 공개 메소드

Read one record from the output topic and return its key and value as pair.
public ReadKeyValue ( ) : V>.ConsumeResult
리턴 V>.ConsumeResult

ReadKeyValueList() 공개 메소드

Read all records from topic to List.
public ReadKeyValueList ( ) : V>>.IEnumerable
리턴 V>>.IEnumerable

ReadValue() 공개 메소드

Read one record from the output topic and return record's value.
public ReadValue ( ) : V
리턴 V

ReadValueList() 공개 메소드

Read all values from topic to List.
public ReadValueList ( ) : IEnumerable
리턴 IEnumerable