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, setVersion
public void setValue(@Nonnull @NotEmpty String val)
setValue
in class StorageRecord
val
- the new record valuepublic void setExpiration(@Nullable Long exp)
setExpiration
in class StorageRecord
exp
- the new record expiration, or null if nonepublic long incrementVersion()
incrementVersion
in class StorageRecord
Copyright © 2018. All rights reserved.