public interface MessageBatch
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] data,
pl.allegro.tech.hermes.tracker.consumers.MessageMetadata batchMessageMetadata) |
boolean |
canFit(byte[] data) |
MessageBatch |
close() |
java.util.List<pl.allegro.tech.hermes.api.Header> |
getAdditionalHeaders() |
int |
getCapacity() |
java.nio.ByteBuffer |
getContent() |
pl.allegro.tech.hermes.api.ContentType |
getContentType() |
java.lang.String |
getId() |
long |
getLifetime() |
java.util.List<pl.allegro.tech.hermes.tracker.consumers.MessageMetadata> |
getMessagesMetadata() |
java.util.List<SubscriptionPartitionOffset> |
getPartitionOffsets() |
int |
getRetryCounter() |
pl.allegro.tech.hermes.api.SubscriptionName |
getSubscription() |
java.lang.String |
getTopic() |
boolean |
hasSubscriptionIdentityHeaders() |
void |
incrementRetryCounter() |
boolean |
isBiggerThanTotalCapacity(byte[] data) |
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isExpired() |
boolean |
isFull() |
default boolean |
isReadyForDelivery() |
int |
size() |
default boolean isReadyForDelivery()
void append(byte[] data,
pl.allegro.tech.hermes.tracker.consumers.MessageMetadata batchMessageMetadata)
throws java.nio.BufferOverflowException
java.nio.BufferOverflowExceptionboolean canFit(byte[] data)
boolean isExpired()
boolean isClosed()
boolean isFull()
java.lang.String getId()
pl.allegro.tech.hermes.api.ContentType getContentType()
java.nio.ByteBuffer getContent()
java.util.List<SubscriptionPartitionOffset> getPartitionOffsets()
java.util.List<pl.allegro.tech.hermes.tracker.consumers.MessageMetadata> getMessagesMetadata()
java.util.List<pl.allegro.tech.hermes.api.Header> getAdditionalHeaders()
long getLifetime()
int size()
MessageBatch close()
boolean isEmpty()
boolean isBiggerThanTotalCapacity(byte[] data)
int getCapacity()
void incrementRetryCounter()
int getRetryCounter()
boolean hasSubscriptionIdentityHeaders()
java.lang.String getTopic()
pl.allegro.tech.hermes.api.SubscriptionName getSubscription()