Interface SessionMetaDataFactory<V>
- Type Parameters:
V- the cache value type
- All Superinterfaces:
AutoCloseable, org.wildfly.clustering.cache.CacheEntryCreator<String, V, Map.Entry<Instant, Optional<Duration>>>, org.wildfly.clustering.cache.CacheEntryLocator<String,V>, org.wildfly.clustering.cache.CacheEntryRemover<String>, ImmutableSessionMetaDataFactory<V>
public interface SessionMetaDataFactory<V>
extends ImmutableSessionMetaDataFactory<V>, org.wildfly.clustering.cache.CacheEntryCreator<String, V, Map.Entry<Instant, Optional<Duration>>>, org.wildfly.clustering.cache.CacheEntryRemover<String>, AutoCloseable
Factory for session metadata.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createSessionMetaData(String id, V value) Creates invalidatable session metadata from the specified identifier and cache value.Methods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator
createValue, createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, findValueAsync, tryValue, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryRemover
purge, purgeAsync, remove, removeAsyncMethods inherited from interface ImmutableSessionMetaDataFactory
createImmutableSessionMetaData
-
Method Details
-
createSessionMetaData
Creates invalidatable session metadata from the specified identifier and cache value.- Parameters:
id- the identifier of a sessionvalue- the cache value of the session- Returns:
- invalidatable session metadata from the specified identifier and cache value.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-