Interface SessionAttributesFactory<C,V>

Type Parameters:
C - the deployment context type
V - the marshalled value type
All Superinterfaces:
AutoCloseable, org.wildfly.clustering.cache.CacheEntryCreator<String,V,Void>, org.wildfly.clustering.cache.CacheEntryLocator<String,V>, org.wildfly.clustering.cache.CacheEntryRemover<String>, ImmutableSessionAttributesFactory<V>

public interface SessionAttributesFactory<C,V> extends ImmutableSessionAttributesFactory<V>, org.wildfly.clustering.cache.CacheEntryCreator<String,V,Void>, org.wildfly.clustering.cache.CacheEntryRemover<String>, AutoCloseable
Factory for creating a SessionAttributes object.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    createSessionAttributes(String id, V value, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, C context)
    Create a SessionAttributes object.

    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

    Methods inherited from interface org.wildfly.clustering.session.cache.attributes.ImmutableSessionAttributesFactory

    createImmutableSessionAttributes
  • Method Details

    • createSessionAttributes

      SessionAttributes createSessionAttributes(String id, V value, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, C context)
      Create a SessionAttributes object.
      Parameters:
      id - the identifier of a session
      value - the marshalled value type
      metaData - the metadata of a session
      context - the context of a session
      Returns:
      a SessionAttributes object.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable