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
- Direct Known Subclasses:
JPAStorageRecord
Exposes mutation of
StorageRecord
properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Increment the record version and returns the new value.void
setExpiration
(Long exp) Set the record expiration.void
Set the record value.Methods inherited from class org.opensaml.storage.StorageRecord
getExpiration, getValue, getValue, getVersion, setValue, setVersion
-
Constructor Details
-
MutableStorageRecord
Constructor.- Parameters:
val
- valueexp
- expiration, or null if none
-
-
Method Details
-
setValue
Set the record value.- Overrides:
setValue
in classStorageRecord<T>
- Parameters:
val
- the new record value
-
setExpiration
Set the record expiration.- Overrides:
setExpiration
in 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:
incrementVersion
in classStorageRecord<T>
- Returns:
- the updated version
-