public void addListener(Runnable listener) {
        if (listeners == null)
            listeners = new ArrayList<>();
        listeners.add(listener);
    }
Adds a listener which is invoked whenever elements are added to this.
This may not be invoked once for each added element.
vespajlib/src/main/java/com/yahoo/collections/ListenableArrayList.java