public final class ListenerRecord
extends java.lang.Object
| Constructor and Description |
|---|
ListenerRecord(java.lang.String topic,
int feedId,
long offset,
long timestamp,
byte[] key,
byte[] value,
java.lang.String producer)
Create a record
|
| Modifier and Type | Method and Description |
|---|---|
int |
feedId()
The feedId from which this record is received
|
byte[] |
key()
The key (or null if no key is specified)
|
long |
offset()
The position of this record in the corresponding Kafka partition.
|
java.lang.String |
producer()
The producer
|
long |
timestamp()
The timestamp at which this record was produced
|
java.lang.String |
topic()
The topic this record is received from
|
java.lang.String |
toString() |
byte[] |
value()
The value
|
public ListenerRecord(java.lang.String topic,
int feedId,
long offset,
long timestamp,
byte[] key,
byte[] value,
java.lang.String producer)
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 contentsproducer - The record producerpublic java.lang.String topic()
public int feedId()
public byte[] key()
public byte[] value()
public java.lang.String producer()
public long offset()
public long timestamp()
public java.lang.String toString()
toString in class java.lang.Object