Package org.sdnplatform.sync.error

Examples of org.sdnplatform.sync.error.ObsoleteVersionException


                List<Versioned<byte[]>> itemsToRemove =
                        new ArrayList<Versioned<byte[]>>(values.size());
                for(Versioned<byte[]> versioned: values) {
                    Occurred occurred = value.getVersion().compare(versioned.getVersion());
                    if(occurred == Occurred.BEFORE) {
                        throw new ObsoleteVersionException("Obsolete version for key '" + key
                                                           + "': " + value.getVersion());
                    } else if(occurred == Occurred.AFTER) {
                        itemsToRemove.add(versioned);
                    }
                }
View Full Code Here


    }

    @Override
    public void put(K key, Versioned<V> value) throws SyncException {
        if (!doput(key, value))
            throw new ObsoleteVersionException();
    }
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.error.ObsoleteVersionException

Copyright © 2018 www.massapicom. 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.