Class ImmutableSessionAttributeActivationNotifier<S,C,L>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.attributes.fine.ImmutableSessionAttributeActivationNotifier<S,C,L>
-
- Type Parameters:
S- the HttpSession specification typeC- the ServletContext specification typeL- the HttpSessionActivationListener specification type
- All Implemented Interfaces:
AutoCloseable,SessionAttributeActivationNotifier
public class ImmutableSessionAttributeActivationNotifier<S,C,L> extends Object implements SessionAttributeActivationNotifier
Triggers activation/passivation events for a single session attribute.- Author:
- Paul Ferraro
-
-
Field Summary
-
Fields inherited from interface org.wildfly.clustering.web.cache.session.attributes.fine.SessionAttributeActivationNotifier
POST_ACTIVATE, PRE_PASSIVATE
-
-
Constructor Summary
Constructors Constructor Description ImmutableSessionAttributeActivationNotifier(HttpSessionActivationListenerProvider<S,C,L> provider, ImmutableSession session, C context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidpostActivate(Object object)Notifies the specified attribute that it was activated, if interested.voidprePassivate(Object object)Notifies the specified attribute that it will be passivated, if interested.
-
-
-
Constructor Detail
-
ImmutableSessionAttributeActivationNotifier
public ImmutableSessionAttributeActivationNotifier(HttpSessionActivationListenerProvider<S,C,L> provider, ImmutableSession session, C context)
-
-
Method Detail
-
prePassivate
public void prePassivate(Object object)
Description copied from interface:SessionAttributeActivationNotifierNotifies the specified attribute that it will be passivated, if interested.- Specified by:
prePassivatein interfaceSessionAttributeActivationNotifier
-
postActivate
public void postActivate(Object object)
Description copied from interface:SessionAttributeActivationNotifierNotifies the specified attribute that it was activated, if interested.- Specified by:
postActivatein interfaceSessionAttributeActivationNotifier
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionAttributeActivationNotifier
-
-