Interface ImmutableSessionFactory<MV,AV>

Type Parameters:
MV - the session metadata value type
AV - the session attribute value type
All Superinterfaces:
org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV,AV>, org.wildfly.clustering.cache.CacheEntryLocator<String, Map.Entry<MV,AV>>, ImmutableSessionFactoryConfiguration<MV,AV>
All Known Subinterfaces:
SessionFactory<DC,MV,AV,SC>
All Known Implementing Classes:
CompositeImmutableSessionFactory, CompositeSessionFactory

public interface ImmutableSessionFactory<MV,AV> extends ImmutableSessionFactoryConfiguration<MV,AV>, org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV,AV>
Factory for creating an ImmutableSession.
Author:
Paul Ferraro
  • Method Details

    • findEntry

      default Map.Entry<CompletionStage<MV>, CompletionStage<AV>> findEntry(String id)
      Specified by:
      findEntry in interface org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV,AV>
    • tryEntry

      default Map.Entry<CompletionStage<MV>, CompletionStage<AV>> tryEntry(String id)
      Specified by:
      tryEntry in interface org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV,AV>
    • createImmutableSession

      default org.wildfly.clustering.session.ImmutableSession createImmutableSession(String id, Map.Entry<MV,AV> entry)
      Creates an immutable session from the specified identifier and metadata/attribute entry.
      Parameters:
      id - a session identifier
      entry - a map entry containing the metadata and attributes of the session
      Returns:
      an immutable session
    • createImmutableSession

      org.wildfly.clustering.session.ImmutableSession createImmutableSession(String id, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, Map<String,Object> attributes)
      Creates an immutable session from the specified identifier, metadata, and attributes.
      Parameters:
      id - the identifier of this session
      metaData - the metadata of this session
      attributes - the attributes of this session
      Returns:
      an immutable session