public class Message
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Builder |
| Constructor and Description |
|---|
Message(java.lang.String id,
java.lang.String topic,
byte[] content,
pl.allegro.tech.hermes.api.Topic.ContentType contentType,
long publishingTimestamp,
long readingTimestamp,
pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset partitionOffset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
pl.allegro.tech.hermes.api.Topic.ContentType |
getContentType() |
byte[] |
getData() |
java.lang.String |
getId() |
pl.allegro.tech.hermes.common.kafka.KafkaTopicName |
getKafkaTopic() |
long |
getOffset() |
int |
getPartition() |
long |
getPublishingTimestamp() |
long |
getReadingTimestamp() |
java.lang.String |
getTopic() |
int |
hashCode() |
boolean |
isTtlExceeded(int ttlSeconds) |
static Message.Builder |
message() |
public Message(java.lang.String id,
java.lang.String topic,
byte[] content,
pl.allegro.tech.hermes.api.Topic.ContentType contentType,
long publishingTimestamp,
long readingTimestamp,
pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset partitionOffset)
public long getPublishingTimestamp()
public long getReadingTimestamp()
public long getOffset()
public byte[] getData()
public pl.allegro.tech.hermes.api.Topic.ContentType getContentType()
public int getPartition()
public java.lang.String getTopic()
public boolean isTtlExceeded(int ttlSeconds)
public java.lang.String getId()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static Message.Builder message()
public pl.allegro.tech.hermes.common.kafka.KafkaTopicName getKafkaTopic()