package org.simantics.acorn.internal; import org.simantics.acorn.cluster.ClusterImpl; import org.simantics.acorn.exception.IllegalAcornStateException; import org.simantics.acorn.lru.ClusterUpdateOperation; import org.simantics.db.impl.ClusterSupport; public class ClusterUpdateProcessor2 extends ClusterUpdateProcessorBase2 { final ClusterSupport support; final ClusterUpdateOperation info; private ClusterImpl cluster; public ClusterUpdateProcessor2(ClusterSupport support, byte[] operations, ClusterUpdateOperation info) { super(operations); this.support = support; this.info = info; } public void process(ClusterImpl cluster) throws IllegalAcornStateException { this.cluster = cluster; process(); info.finish(); } @Override void setImmutable(boolean value) { cluster.setImmutable(value, support); } }