Class ImmutableSessionAttributeActivationNotifier<S,C,L>
java.lang.Object
org.wildfly.clustering.session.cache.attributes.fine.ImmutableSessionAttributeActivationNotifier<S,C,L>
- Type Parameters:
S- the session specification typeC- the session manager context specification typeL- the session activation listener 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.session.cache.attributes.fine.SessionAttributeActivationNotifier
POST_ACTIVATE, PRE_PASSIVATE -
Constructor Summary
ConstructorsConstructorDescriptionImmutableSessionAttributeActivationNotifier(SessionSpecificationProvider<S, C> sessionProvider, SessionEventListenerSpecificationProvider<S, L> listenerProvider, org.wildfly.clustering.session.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(SessionSpecificationProvider<S, C> sessionProvider, SessionEventListenerSpecificationProvider<S, L> listenerProvider, org.wildfly.clustering.session.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
-