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