Interface HttpSessionActivationListenerProvider<S,C,L>
-
- Type Parameters:
S- the specification type for the HttpSessionC- the specification type for the ServletContextL- the specification type for the HttpSessionActivationListener
- All Superinterfaces:
HttpSessionFactory<S,C>
- All Known Subinterfaces:
SpecificationProvider<S,C,AL>
public interface HttpSessionActivationListenerProvider<S,C,L> extends HttpSessionFactory<S,C>
Provides specification behavior for session activation listeners.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LcreateListener(Consumer<S> prePassivate, Consumer<S> postActivate)Creates a specification implementation with the specified pre-passivate and post-activate logic.Class<L>getHttpSessionActivationListenerClass()Returns the HttpSessionActivationListener specification interface.Consumer<S>postActivateNotifier(L listener)Creates a post-activate notifier for the specified listener.Consumer<S>prePassivateNotifier(L listener)Creates a pre-passivate notifier for the specified listener.-
Methods inherited from interface org.wildfly.clustering.web.session.HttpSessionFactory
createHttpSession
-
-
-
-
Method Detail
-
getHttpSessionActivationListenerClass
Class<L> getHttpSessionActivationListenerClass()
Returns the HttpSessionActivationListener specification interface.- Returns:
- the HttpSessionActivationListener specification interface
-
prePassivateNotifier
Consumer<S> prePassivateNotifier(L listener)
Creates a pre-passivate notifier for the specified listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
postActivateNotifier
Consumer<S> postActivateNotifier(L listener)
Creates a post-activate notifier for the specified listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
createListener
L createListener(Consumer<S> prePassivate, Consumer<S> postActivate)
Creates a specification implementation with the specified pre-passivate and post-activate logic.- Parameters:
prePassivate- a pre-passivate event consumer for a sessionpostActivate- a post-activate event consumer for a session- Returns:
- a specification listener implementation
-
-