Interface SessionAttributesFactory<C,V>
- Type Parameters:
C- the deployment context typeV- the marshalled value type
- All Superinterfaces:
AutoCloseable, CacheEntryCreator<String,V, Void>, CacheEntryLocator<String, V>, CacheEntryRemover<String>, ImmutableSessionAttributesFactory<V>
- All Known Implementing Classes:
CoarseSessionAttributesFactory, CoarseSessionAttributesFactory, FineSessionAttributesFactory, FineSessionAttributesFactory
public interface SessionAttributesFactory<C,V>
extends ImmutableSessionAttributesFactory<V>, CacheEntryCreator<String,V,Void>, CacheEntryRemover<String>, AutoCloseable
Factory for creating a
SessionAttributes object.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createSessionAttributes(String id, V value, ImmutableSessionMetaData metaData, C context) Create aSessionAttributesobject.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 ImmutableSessionAttributesFactory
createImmutableSessionAttributes
-
Method Details
-
createSessionAttributes
SessionAttributes createSessionAttributes(String id, V value, ImmutableSessionMetaData metaData, C context) Create aSessionAttributesobject.- Parameters:
id- the identifier of a sessionvalue- the marshalled value typemetaData- the metadata of a sessioncontext- the context of a session- Returns:
- a
SessionAttributesobject.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-