Class ContainerHelper.JCacheLifecycleInterceptor
java.lang.Object
com.tangosol.coherence.jcache.common.ContainerHelper.JCacheLifecycleInterceptor
- All Implemented Interfaces:
EventInterceptor<LifecycleEvent>
- Enclosing class:
- ContainerHelper
public static class ContainerHelper.JCacheLifecycleInterceptor
extends Object
implements EventInterceptor<LifecycleEvent>
An
EventInterceptor that initializes JCache for running within a container.
A Container-aware CoherenceBasedCachingProvider and CacheManager are created when ECCF LifeCycle Event ACTIVATED occurs in a container context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAdded for Coherence JCache functional testing.booleanAdded for Coherence JCache functional testing.voidonEvent(LifecycleEvent event) Perform necessary processing of the specifiedEvent.
-
Constructor Details
-
JCacheLifecycleInterceptor
public JCacheLifecycleInterceptor()
-
-
Method Details
-
onEvent
Description copied from interface:EventInterceptorPerform necessary processing of the specifiedEvent.- Specified by:
onEventin interfaceEventInterceptor<LifecycleEvent>- Parameters:
event- the Event to be processed- See Also:
-
getActivatedCount
public int getActivatedCount()Added for Coherence JCache functional testing.- Returns:
- how many times Activated event occurred.
-
isContainerContext
public boolean isContainerContext()Added for Coherence JCache functional testing.- Returns:
- true iff activated handler detected container context and activated JCache container context.
-