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
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableSessionAttributeActivationNotifier(org.wildfly.clustering.session.spec.SessionSpecificationProvider<S, C> sessionProvider, org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<S, L> listenerProvider, org.wildfly.clustering.session.ImmutableSession session, C context) Creates a session activation notifier. -
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(org.wildfly.clustering.session.spec.SessionSpecificationProvider<S, C> sessionProvider, org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<S, L> listenerProvider, org.wildfly.clustering.session.ImmutableSession session, C context) Creates a session activation notifier.- Parameters:
sessionProvider- provider of specification viewslistenerProvider- provider of listener specification viewssession- an immutable sessioncontext- a session context
-
-
Method Details
-
prePassivate
Description copied from interface:SessionAttributeActivationNotifierNotifies the specified attribute that it will be passivated, if interested.- Specified by:
prePassivatein interfaceSessionAttributeActivationNotifier- Parameters:
object- an attribute value
-
postActivate
Description copied from interface:SessionAttributeActivationNotifierNotifies the specified attribute that it was activated, if interested.- Specified by:
postActivatein interfaceSessionAttributeActivationNotifier- Parameters:
object- an attribute value
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionAttributeActivationNotifier
-