Class ListenerRecord
- java.lang.Object
-
- com.mapr.kafka.eventstreams.impl.listener.ListenerRecord
-
public final class ListenerRecord extends java.lang.ObjectA key/value pair to be received from Marlin. This consists of a topic name and a feedId number, from which the record is being received and an offset that points to the record in Marlin feedId.
-
-
Constructor Summary
Constructors Constructor Description ListenerRecord(java.lang.String topic, int feedId, long offset, long timestamp, int timestampType, byte[] key, byte[] value, org.apache.kafka.common.header.Headers headers, java.lang.String producer)Create a record
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfeedId()The feedId from which this record is receivedorg.apache.kafka.common.header.Headersheaders()Headersbyte[]key()The key (or null if no key is specified)longoffset()The position of this record in the corresponding Kafka partition.java.lang.Stringproducer()The producerlongtimestamp()The timestamp at which this record was producedinttimestampType()The timestamp type of the recordjava.lang.Stringtopic()The topic this record is received fromjava.lang.StringtoString()byte[]value()The value
-
-
-
Constructor Detail
-
ListenerRecord
public ListenerRecord(java.lang.String topic, int feedId, long offset, long timestamp, int timestampType, byte[] key, byte[] value, org.apache.kafka.common.header.Headers headers, java.lang.String producer)Create a record- Parameters:
topic- The topic this record is received fromfeedId- The feedId of the topic this record is received fromoffset- The offset of this record in the corresponding partitiontimestamp- The timestamp at which the msg was producedkey- The record keyvalue- The record contentsheaders- Record headersproducer- The record producer
-
-
Method Detail
-
topic
public java.lang.String topic()
The topic this record is received from
-
feedId
public int feedId()
The feedId from which this record is received
-
key
public byte[] key()
The key (or null if no key is specified)
-
value
public byte[] value()
The value
-
producer
public java.lang.String producer()
The producer
-
headers
public org.apache.kafka.common.header.Headers headers()
Headers
-
offset
public long offset()
The position of this record in the corresponding Kafka partition.
-
timestamp
public long timestamp()
The timestamp at which this record was produced
-
timestampType
public int timestampType()
The timestamp type of the record
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-