@Override
    public boolean add(E e) {
        if (underlying.size() >= maxLength) {
            throw new BoundedListTooLongException("Cannot add another element to the list " +
                "because it would exceed the maximum length of " + maxLength);
        }
        return underlying.add(e);
    }
A list which cannot grow beyond a certain length. If the maximum length would be exceeded by an
operation, the operation throws a BoundedListTooLongException exception rather than completing.
For simplicity, mutation through iterators or sublists is not allowed.

@param <E> the element type
server-common/src/main/java/org/apache/kafka/server/mutable/BoundedList.java