Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 /// <summary>
 /// Message
 /// </summary>
 public Message(ProducerRecord <K, V> record, TPassThrough passThrough)
 {
     Record      = record;
     PassThrough = passThrough;
 }
Esempio n. 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);
Esempio n. 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);
Esempio n. 5
0
 public MultiResultPart(DeliveryReport <K, V> metadata, ProducerRecord <K, V> record)
 {
     Metadata = metadata;
     Record   = record;
 }