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 Type
    Method
    Description
    void
     
    Creates invalidatable session metadata from the specified identifier and cache value.

    Methods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator

    createValue, createValueAsync

    Methods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator

    findValue, findValueAsync, tryValue, tryValueAsync

    Methods inherited from interface org.wildfly.clustering.cache.CacheEntryRemover

    purge, purgeAsync, remove, removeAsync
  • 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