Class SimplifiedTransferQueueBundler

All Implemented Interfaces:
Runnable, Bundler

public class SimplifiedTransferQueueBundler extends TransferQueueBundler
This bundler uses the same logic as TransferQueueBundler but does not allocate memory except for the buffer itself and does not use complex data structures.
  • Field Details

    • MSG_BUF_SIZE

      protected static final int MSG_BUF_SIZE
      See Also:
    • msg_queue

      protected final Message[] msg_queue
    • curr

      protected int curr
  • Constructor Details

    • SimplifiedTransferQueueBundler

      public SimplifiedTransferQueueBundler()
  • Method Details

    • size

      public int size()
      Description copied from class: BaseBundler
      Returns the total number of messages in the hashmap
      Specified by:
      size in interface Bundler
      Overrides:
      size in class TransferQueueBundler
    • addMessage

      protected void addMessage(Message msg, int size)
      Overrides:
      addMessage in class BaseBundler
    • sendBundledMessages

      protected void sendBundledMessages()
      Description copied from class: BaseBundler
      Sends all messages in the map. Messages for the same destination are bundled into a message list. The map will be cleared when done.
      Overrides:
      sendBundledMessages in class BaseBundler
    • _sendBundledMessages

      protected void _sendBundledMessages()