public void set(int newValue) {
        Iterator<Snapshot> iterator = snapshotRegistry.reverseIterator();
        if (iterator.hasNext()) {
            Snapshot snapshot = iterator.next();
            IntegerContainer container = snapshot.getDelta(TimelineInteger.this);
            if (container == null) {
                container = new IntegerContainer();
                snapshot.setDelta(TimelineInteger.this, container);
                container.setValue(value);
            }
        }
        this.value = newValue;
    }
This is a mutable integer which can be snapshotted. 
<br>
This class requires external synchronization.
server-common/src/main/java/org/apache/kafka/timeline/TimelineInteger.java