OFFSET - Type of message offsetpublic final class KafkaMessage<OFFSET> extends Object
| Constructor and Description |
|---|
KafkaMessage(org.apache.twill.kafka.client.TopicPartition topicPartition,
OFFSET nextOffset,
ByteBuffer key,
ByteBuffer payload) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getKey() |
OFFSET |
getNextOffset() |
ByteBuffer |
getPayload() |
org.apache.twill.kafka.client.TopicPartition |
getTopicPartition() |
public KafkaMessage(org.apache.twill.kafka.client.TopicPartition topicPartition,
OFFSET nextOffset,
ByteBuffer key,
ByteBuffer payload)
public org.apache.twill.kafka.client.TopicPartition getTopicPartition()
public OFFSET getNextOffset()
public ByteBuffer getKey()
public ByteBuffer getPayload()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.