serializers.addAll(collector.serializers());
}
}
});
SerializeStream ss = new SerializeStream(mmap.getAddr() + CUSTOM_DATA_OFFSET, MAX_CUSTOM_DATA_SIZE);
try {
for (Serializer serializer : serializers) {
ss.writeObject(serializer);
}
} catch (IOException e) {
throw new IllegalStateException(e);
}
setHeader(UID_OFFSET, serializer.uid());
setHeader(CUSTOM_SIZE_OFFSET, ss.count());
log.info("Stored " + serializers.size() + " serializers. Metadata size = " + ss.count());
}