Class NoBundler

java.lang.Object
org.jgroups.protocols.BaseBundler
org.jgroups.protocols.NoBundler
All Implemented Interfaces:
Bundler

public class NoBundler extends BaseBundler
Bundler which doesn't bundle :-) Can be used to measure the diff between bundling and non-bundling (e.g. at runtime). Not really meant for production.
Since:
4.0
Author:
Bela Ban
  • Constructor Details

    • NoBundler

      public NoBundler()
  • 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 BaseBundler
    • getQueueSize

      public int getQueueSize()
      Description copied from interface: Bundler
      If the bundler has a queue and it should be managed by a queuing discipline (like Random Early Detection), then return the number of elements in the queue, else -1. In the latter case, the queue won't be managed.
      This method needs to be fast as it might get called on every message to be sent.
      Specified by:
      getQueueSize in interface Bundler
      Overrides:
      getQueueSize in class BaseBundler
    • send

      public void send(Message msg) throws Exception
      Specified by:
      send in interface Bundler
      Overrides:
      send in class BaseBundler
      Throws:
      Exception