Table of Contents

Enum ConsumerStatus

Namespace
Silverback.Messaging.Broker
Assembly
Silverback.Integration.dll

The possible states of the IConsumer as exposed in the IConsumerStatusInfo.

public enum ConsumerStatus

Fields

Connected = 2

The consumer is completely initialized, the connection has been established and is ready to consume.

This includes all extra steps that might be required by the underlying library or the protocol (e.g., a Kafka partitions assignment has been received).

Consuming = 3

The consumer is connected and has received at least a message.

Started = 1

The consumer has successfully initialized the connection to the message broker.

This doesn't necessarily mean that it is connected and ready to consume. The underlying library might handle the connection process asynchronously in the background, or the protocol might require extra steps (e.g., Kafka might require the partitions to be assigned).

Stopped = 0

The consumer is not connected to the message broker.