public interface StateRepository
Cache
.Modifier and Type | Method and Description |
---|---|
default <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)
Deprecated.
Replaced by
getPersistentStateHolder(String, Class, Class, Predicate, ClassLoader) that takes in a Predicate that authorizes a class for deserialization |
<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 . |
@Deprecated default <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)
getPersistentStateHolder(String, Class, Class, Predicate, ClassLoader)
that takes in a Predicate that authorizes a class for deserializationStateRepository
.
If the state holder existed already, it is returned with its content fully available.
K
- the key type, must be Serializable
V
- the value type, must be Serializable
name
- the state holder namekeyClass
- concrete key typevalueClass
- concrete value type<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
.
If the state holder existed already, it is returned with its content fully available.
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