public class Message extends Object
| Constructor and Description |
|---|
Message() |
Message(String key,
String value,
long offset,
int partition,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getKey() |
long |
getOffset() |
int |
getPartition() |
long |
getTimestamp() |
String |
getValue() |
int |
hashCode() |
void |
setKey(String key) |
void |
setOffset(long offset) |
void |
setPartition(int partition) |
void |
setTimestamp(long timestamp) |
void |
setValue(String value) |
String |
toString() |
public String getKey()
public String getValue()
public long getOffset()
public void setOffset(long offset)
offset - the offset to setpublic int getPartition()
public void setPartition(int partition)
public long getTimestamp()
public void setTimestamp(long timestamp)
Copyright © 2019. All rights reserved.