Package org.infinispan.container.versioning

Examples of org.infinispan.container.versioning.VersionGenerator


        return metadata.build();
    }

    protected EntryVersion generateVersion(Cache<?, ?> cache) {
        ComponentRegistry registry = cache.getAdvancedCache().getComponentRegistry();
        VersionGenerator versionGenerator = registry.getComponent(VersionGenerator.class);
        if (versionGenerator == null) {
           VersionGenerator newVersionGenerator = new NumericVersionGenerator().clustered(registry.getComponent(RpcManager.class) != null);
           registry.registerComponent(newVersionGenerator, VersionGenerator.class);
           return newVersionGenerator.generateNew();
        } else {
           return versionGenerator.generateNew();
        }
     }
View Full Code Here

TOP

Related Classes of org.infinispan.container.versioning.VersionGenerator

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.