setting the consumer's stateChangeHandler should be more flexible, setting it inside the consumer's constructor does not fit all use cases and limits its usability. This PR moves it outside the consturctor into a property so it can be accessed anytime during the consumer's existence.
setting the consumer's
stateChangeHandler
should be more flexible, setting it inside the consumer's constructor does not fit all use cases and limits its usability. This PR moves it outside the consturctor into a property so it can be accessed anytime during the consumer's existence.