Package org.opensaml.storage
Class MutableStorageRecord<T>
- java.lang.Object
-
- org.opensaml.storage.StorageRecord<T>
-
- org.opensaml.storage.MutableStorageRecord<T>
-
- Type Parameters:
T- type of record
public class MutableStorageRecord<T> extends StorageRecord<T>
Exposes mutation ofStorageRecordproperties.
-
-
Constructor Summary
Constructors Constructor Description MutableStorageRecord(String val, Long exp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longincrementVersion()Increment the record version and returns the new value.voidsetExpiration(Long exp)Set the record expiration.voidsetValue(String val)Set the record value.-
Methods inherited from class org.opensaml.storage.StorageRecord
getExpiration, getValue, getValue, getVersion, setValue, setVersion
-
-
-
-
Method Detail
-
setValue
public void setValue(@Nonnull @NotEmpty String val)
Set the record value.- Overrides:
setValuein classStorageRecord<T>- Parameters:
val- the new record value
-
setExpiration
public void setExpiration(@Nullable Long exp)Set the record expiration.- Overrides:
setExpirationin classStorageRecord<T>- Parameters:
exp- the new record expiration, or null if none
-
incrementVersion
public long incrementVersion()
Increment the record version and returns the new value.- Overrides:
incrementVersionin classStorageRecord<T>- Returns:
- the updated version
-
-