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

Factory for session metadata.
Author:
Paul Ferraro
  • Method Details

    • createSessionMetaData

      InvalidatableSessionMetaData createSessionMetaData(String id, V value)
      Creates invalidatable session metadata from the specified identifier and cache value.
      Parameters:
      id - the identifier of a session
      value - the cache value of the session
      Returns:
      invalidatable session metadata from the specified identifier and cache value.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable