public class TransientStateRepository extends java.lang.Object implements StateRepository
Constructor and Description |
---|
TransientStateRepository() |
Modifier and Type | Method and Description |
---|---|
<K extends java.io.Serializable,V extends java.io.Serializable> |
getPersistentStateHolder(java.lang.String name,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
java.util.function.Predicate<java.lang.Class<?>> isClassPermitted,
java.lang.ClassLoader classLoader)
Gets a named state holder rooted in the current
StateRepository . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPersistentStateHolder
public <K extends java.io.Serializable,V extends java.io.Serializable> StateHolder<K,V> getPersistentStateHolder(java.lang.String name, java.lang.Class<K> keyClass, java.lang.Class<V> valueClass, java.util.function.Predicate<java.lang.Class<?>> isClassPermitted, java.lang.ClassLoader classLoader)
StateRepository
StateRepository
.
If the state holder existed already, it is returned with its content fully available.
getPersistentStateHolder
in interface StateRepository
K
- the key type, must be Serializable
V
- the value type, must be Serializable
name
- the state holder namekeyClass
- concrete key typevalueClass
- concrete value typeisClassPermitted
- Predicate that determines whether a class is authorized for deserialization as part of key or value deserializationclassLoader
- class loader used at the time of deserialization of key and value