public bool Equals(ProducerRecord <K, V> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Topic == other.Topic && Partition == other.Partition && Timestamp == other.Timestamp && Equals(Message, other.Message));
 }
Exemple #2
0
 /// <summary>
 /// Message
 /// </summary>
 public Message(ProducerRecord <K, V> record, TPassThrough passThrough)
 {
     Record      = record;
     PassThrough = passThrough;
 }
Exemple #3
0
 /// <summary>
 /// Create a message containing the `record`.
 /// </summary>
 public static IEnvelope <K, V, NotUsed> Single <K, V>(ProducerRecord <K, V> record)
 => new Message <K, V, NotUsed>(record, NotUsed.Instance);
Exemple #4
0
 /// <summary>
 /// Create a message containing the `record` and a `passThrough`.
 /// </summary>
 public static IEnvelope <K, V, TPassThrough> Single <K, V, TPassThrough>(ProducerRecord <K, V> record, TPassThrough passThrough)
 => new Message <K, V, TPassThrough>(record, passThrough);
Exemple #5
0
 public MultiResultPart(DeliveryReport <K, V> metadata, ProducerRecord <K, V> record)
 {
     Metadata = metadata;
     Record   = record;
 }