| Modifier and Type | Class and Description |
|---|---|
static class |
MessageImpl.Builder
BUILDER
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
commit()
Commits this message
If there was an error while committing, there is no point of retrying committing the same message:
the whole PartitionSession should be shut down by that time.
|
long |
getCommitOffsetFrom() |
Instant |
getCreatedAt() |
byte[] |
getData() |
String |
getMessageGroupId() |
List<MetadataItem> |
getMetadataItems() |
long |
getOffset() |
OffsetsRange |
getOffsetsToCommit() |
PartitionOffsets |
getPartitionOffsets() |
PartitionSession |
getPartitionSession() |
PartitionSessionImpl |
getPartitionSessionImpl() |
String |
getProducerId() |
long |
getSeqNo() |
Map<String,String> |
getWriteSessionMeta() |
Instant |
getWrittenAt() |
void |
setData(byte[] data) |
void |
setDecompressed(boolean decompressed) |
void |
setException(IOException exception) |
public byte[] getData()
public void setData(byte[] data)
public void setException(IOException exception)
public long getOffset()
public long getCommitOffsetFrom()
public Instant getCreatedAt()
getCreatedAt in interface Messagepublic String getMessageGroupId()
getMessageGroupId in interface Messagepublic String getProducerId()
getProducerId in interface Messagepublic Map<String,String> getWriteSessionMeta()
getWriteSessionMeta in interface Messagepublic Instant getWrittenAt()
getWrittenAt in interface Messagepublic PartitionSession getPartitionSession()
getPartitionSession in interface Messagepublic PartitionSessionImpl getPartitionSessionImpl()
public List<MetadataItem> getMetadataItems()
getMetadataItems in interface Messagepublic PartitionOffsets getPartitionOffsets()
getPartitionOffsets in interface Messagepublic void setDecompressed(boolean decompressed)
public CompletableFuture<Void> commit()
Messagepublic OffsetsRange getOffsetsToCommit()
Copyright © 2025. All rights reserved.