Title: Hot Rod Java Client Versioned API Describe the issue: There is no getWithVersion method, please remove it And example code should be changed Suggestions for improvement: Example 13.4. Using Versioned Methods // To use the versioned API, remote classes are specifically needed RemoteCacheManager remoteCacheManager = new RemoteCacheManager(); RemoteCache<String, String> cache = remoteCacheManager.getCache(); remoteCache.put("car", "ferrari"); VersionedValue valueBinary = remoteCache.getVersioned("car"); // removal only takes place only if the version has not been changed // in between. (a new version is associated with 'car' key on each change) assert remoteCache.remove("car", valueBinary.getVersion()); assert !cache.containsKey("car"); Example 13.5. Using Replace remoteCache.put("car", "ferrari"); VersionedValue valueBinary = remoteCache.getVersioned("car"); assert remoteCache.replace("car", "lamborghini", valueBinary.getVersion()); Additional information:
Misha please change code samples as proposed above Example 13.4. Using Versioned Methods // To use the versioned API, remote classes are specifically needed RemoteCacheManager remoteCacheManager = new RemoteCacheManager(); RemoteCache<String, String> cache = remoteCacheManager.getCache(); remoteCache.put("car", "ferrari"); VersionedValue valueBinary = remoteCache.getVersioned("car"); // removal only takes place only if the version has not been changed // in between. (a new version is associated with 'car' key on each change) assert remoteCache.remove("car", valueBinary.getVersion()); assert !cache.containsKey("car"); Example 13.5. Using Replace remoteCache.put("car", "ferrari"); VersionedValue valueBinary = remoteCache.getVersioned("car"); assert remoteCache.replace("car", "lamborghini", valueBinary.getVersion());
Now available on access.redhat.com under the JBoss Data Grid 6.3 documentation label.