code: public long size() {
          int size = 0;
          for (LogSegment seg : segments.getView()) {
              size += seg.size();
          }
          return size;
      }
docs: all message size in the broker(some old messages has been deleted)
  
  @return effected message size