public class ReturnValueVersion extends ValueVersion
A ReturnValueVersion instance may be created and passed as the
prevValue parameter to methods such as KVStore.put(Key, Value,
ReturnValueVersion, Durability, long, TimeUnit).
For best performance, it is important to choose only the properties that are required. The KV Store is optimized to avoid I/O when the requested properties are in cache.
Note that because both properties are optional, the version property, value property, or both properties may be null.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ReturnValueVersion.Choice |
Specifies whether to return the value, version, both or neither.
|
| Constructor | Description |
|---|---|
ReturnValueVersion(ReturnValueVersion.Choice returnChoice) |
Creates an object for returning the value, version or both.
|
| Modifier and Type | Method | Description |
|---|---|---|
ReturnValueVersion.Choice |
getReturnChoice() |
Returns the ReturnValueVersion.Choice used to create this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, getVersion, setValue, setVersion, toStringpublic ReturnValueVersion(ReturnValueVersion.Choice returnChoice)
returnChoice - determines whether the value, version, both or
none are returned.public ReturnValueVersion.Choice getReturnChoice()
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.