Examples of BinaryValueUnused


Examples of org.modeshape.jcr.cache.change.BinaryValueUnused

        // Now process the binary changes ...
        for (Change change : changeSet) {
            // Look at property added/removed/changed events, and node add/removed/moved/renamed/reordered events ...
            if (change instanceof BinaryValueUnused) {
                BinaryValueUnused unused = (BinaryValueUnused)change;
                BinaryKey key = unused.getKey();
                if (usedBinaryKeys.contains(key)) {
                    // This change set had marked it as used, but now is unused again; removed it from the used.
                    usedBinaryKeys.remove(key);
                    break;
                }
                unusedBinaryKeys.add(key);
            }
            if (change instanceof BinaryValueUsed) {
                BinaryValueUsed unused = (BinaryValueUsed)change;
                BinaryKey key = unused.getKey();
                if (unusedBinaryKeys.contains(key)) {
                    // This change set had marked it as used, but now is unused again; removed it from the used.
                    unusedBinaryKeys.remove(key);
                    break;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.