private void writeSet(int index, E oldElement, E element) {
Excerpt excerpt = getExcerpt(maxMessageSize, set);
long eventId = excerpt.index();
excerpt.writeEnum(add);
excerpt.writeInt(offset + index);
writeElement(excerpt, element);
excerpt.finish();
if (!notifyOff && !listeners.isEmpty()) {
for (int i = 0; i < listeners.size(); i++) {
ListListener<E> listener = listeners.get(i);