Interface MessageBatch

  • All Known Implementing Classes:
    JsonMessageBatch

    public interface MessageBatch
    • Method Detail

      • isReadyForDelivery

        default boolean isReadyForDelivery()
      • append

        void append​(byte[] data,
                    pl.allegro.tech.hermes.tracker.consumers.MessageMetadata batchMessageMetadata)
             throws java.nio.BufferOverflowException
        Throws:
        java.nio.BufferOverflowException
      • canFit

        boolean canFit​(byte[] data)
      • isExpired

        boolean isExpired()
      • isClosed

        boolean isClosed()
      • isFull

        boolean isFull()
      • getId

        java.lang.String getId()
      • getContentType

        pl.allegro.tech.hermes.api.ContentType getContentType()
      • getContent

        java.nio.ByteBuffer getContent()
      • getMessagesMetadata

        java.util.List<pl.allegro.tech.hermes.tracker.consumers.MessageMetadata> getMessagesMetadata()
      • getAdditionalHeaders

        java.util.List<pl.allegro.tech.hermes.api.Header> getAdditionalHeaders()
      • getLifetime

        long getLifetime()
      • size

        int size()
      • isEmpty

        boolean isEmpty()
      • isBiggerThanTotalCapacity

        boolean isBiggerThanTotalCapacity​(byte[] data)
      • getCapacity

        int getCapacity()
      • incrementRetryCounter

        void incrementRetryCounter()
      • getRetryCounter

        int getRetryCounter()
      • hasSubscriptionIdentityHeaders

        boolean hasSubscriptionIdentityHeaders()
      • getTopic

        java.lang.String getTopic()
      • getSubscription

        pl.allegro.tech.hermes.api.SubscriptionName getSubscription()