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
ConstructorsConstructorDescriptionImmutableSessionAttributeActivationNotifier(HttpSessionActivationListenerProvider<S, C, L> provider, ImmutableSession session, C context) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 Details
-
ImmutableSessionAttributeActivationNotifier
public ImmutableSessionAttributeActivationNotifier(HttpSessionActivationListenerProvider<S, C, L> provider, ImmutableSession session, C context)
-
-
Method Details
-
prePassivate
Description copied from interface:SessionAttributeActivationNotifierNotifies the specified attribute that it will be passivated, if interested.- Specified by:
prePassivatein interfaceSessionAttributeActivationNotifier
-
postActivate
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
-