Class SimplifiedTransferQueueBundler

  • All Implemented Interfaces:
    java.lang.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.
    Author:
    Radim Vansa
    • Field Detail

      • msg_queue

        protected final Message[] msg_queue
      • curr

        protected int curr
    • Constructor Detail

      • SimplifiedTransferQueueBundler

        public SimplifiedTransferQueueBundler()
      • SimplifiedTransferQueueBundler

        public SimplifiedTransferQueueBundler​(int capacity)
    • Method Detail

      • 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()