Examples of generateNew()


Examples of org.infinispan.container.versioning.VersionGenerator.generateNew()

        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
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.