Exemplo n.º 1
0
            public RebalanceListener(IPartitionEventHandler <K, V> partitionEventHandler, KafkaConsumerActor <K, V> actor)
            {
                _partitionEventHandler = partitionEventHandler;
                _actor = actor;

                var restrictedConsumerTimeoutMs = Math.Round(actor._settings.PartitionHandlerWarning.TotalMilliseconds * 0.95);

                _restrictedConsumer = new RestrictedConsumer <K, V>(actor._consumer, TimeSpan.FromMilliseconds(restrictedConsumerTimeoutMs));
                _warningDuration    = actor._settings.PartitionHandlerWarning;
            }
Exemplo n.º 2
0
 public Poll(KafkaConsumerActor <TPollKey, TPollValue> target, bool periodic)
 {
     Target   = target;
     Periodic = periodic;
 }
Exemplo n.º 3
0
 public Poll(KafkaConsumerActor <K, V> target, bool periodic)
 {
     Target   = target;
     Periodic = periodic;
 }