code: public long totalSize() {
          long retval=0;
          for(int i=0; i < index; i++)
              retval+=total_size_visitor.applyAsLong(messages[i], this);
          return retval;
      }
docs: Returns the size of the message batch (by calling {@link org.jgroups.Message#size()} on all messages)