Interface SessionMetaDataFactory<V>
- Type Parameters:
V- the cache value type
- All Superinterfaces:
AutoCloseable, CacheEntryCreator<String, V, Map.Entry<Instant, Optional<Duration>>>, CacheEntryLocator<String,V>, CacheEntryRemover<String>, ImmutableSessionMetaDataFactory<V>
- All Known Implementing Classes:
HotRodSessionMetaDataFactory, InfinispanSessionMetaDataFactory
public interface SessionMetaDataFactory<V>
extends ImmutableSessionMetaDataFactory<V>, CacheEntryCreator<String, V, Map.Entry<Instant, Optional<Duration>>>, 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 CacheEntryCreator
createValue, createValueAsyncMethods inherited from interface CacheEntryLocator
findValue, findValueAsync, tryValue, tryValueAsyncMethods inherited from interface 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
-