Skip to content

Class KafkaTransportOptions

Namespace: Cephalon.Behaviors.Messaging.Options
Assembly: Cephalon.Behaviors.Messaging.dll

Configuration options for the Kafka messaging transport binding.

public sealed class KafkaTransportOptions

object ← KafkaTransportOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Gets or sets the auto offset reset policy applied when no committed offset exists. Default: .

public AutoOffsetReset AutoOffsetReset { get; set; }

AutoOffsetReset

Gets or sets the Kafka bootstrap servers (comma-separated host:port pairs). Default: “localhost:9092”.

public string BootstrapServers { get; set; }

string

Gets or sets a value indicating whether Kafka auto-commit is enabled. Default: false — offsets are committed manually after successful dispatch.

public bool EnableAutoCommit { get; set; }

bool

Gets or sets the consumer group id. Default: “cephalon-behaviors”.

public string GroupId { get; set; }

string

Gets or sets the Kafka topic to subscribe to. When null, defaults to the behavior id.

public string? Topic { get; set; }

string?