Class MockSessionSpecificationProvider<C>
java.lang.Object
org.wildfly.clustering.session.cache.MockSessionSpecificationProvider<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,,C>, PassivationListener<C>> org.wildfly.clustering.session.spec.SessionSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>, C>
public class MockSessionSpecificationProvider<C>
extends Object
implements org.wildfly.clustering.session.spec.SessionSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>,C>, org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>,PassivationListener<C>>
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasEventListener(Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession, C>> preEvent, Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession, C>> postEvent) postEvent(PassivationListener<C> listener) preEvent(PassivationListener<C> listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider
asEventListener
-
Constructor Details
-
MockSessionSpecificationProvider
public MockSessionSpecificationProvider()
-
-
Method Details
-
getEventListenerClass
- Specified by:
getEventListenerClassin interfaceorg.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>, PassivationListener<C>>
-
preEvent
public Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>> preEvent(PassivationListener<C> listener) - Specified by:
preEventin interfaceorg.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>, PassivationListener<C>>
-
postEvent
public Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>> postEvent(PassivationListener<C> listener) - Specified by:
postEventin interfaceorg.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>, PassivationListener<C>>
-
asEventListener
public PassivationListener<C> asEventListener(Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession, C>> preEvent, Consumer<Map.Entry<org.wildfly.clustering.session.ImmutableSession, C>> postEvent) - Specified by:
asEventListenerin interfaceorg.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<Map.Entry<org.wildfly.clustering.session.ImmutableSession,C>, PassivationListener<C>>
-
asSession
-