public class MutableStorageRecord extends StorageRecord
StorageRecord properties.| Constructor and Description |
|---|
MutableStorageRecord(String val,
Long exp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
incrementVersion()
Increment the record version and returns the new value.
|
void |
setExpiration(Long exp)
Set the record expiration.
|
void |
setValue(String val)
Set the record value.
|
getExpiration, getValue, getValue, getVersion, setValue, setVersionpublic void setValue(@Nonnull@NotEmpty String val)
setValue in class StorageRecordval - the new record valuepublic void setExpiration(@Nullable Long exp)
setExpiration in class StorageRecordexp - the new record expiration, or null if nonepublic long incrementVersion()
incrementVersion in class StorageRecordCopyright © 1999–2014. All rights reserved.