Class GrpcCacheLifecycleEventDispatcher

  • All Implemented Interfaces:
    com.tangosol.net.events.EventDispatcher, com.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher

    public class GrpcCacheLifecycleEventDispatcher
    extends com.tangosol.net.events.internal.AbstractEventDispatcher
    implements com.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
    A CacheLifecycleEventDispatcher used by a GrpcRemoteCacheService to dispatch cache lifecycle events.
    Author:
    Jonathan Knight 2020.11.16
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  GrpcCacheLifecycleEventDispatcher.AbstractEvent<T extends Enum<T>>
      A Event implementation providing access to the dispatcher.
      protected static class  GrpcCacheLifecycleEventDispatcher.GrpcCacheLifecycleEvent
      CacheLifecycleEvent implementation raised by this dispatcher.
      • Nested classes/interfaces inherited from class com.tangosol.net.events.internal.AbstractEventDispatcher

        com.tangosol.net.events.internal.AbstractEventDispatcher.DispatcherInterceptorEvent<E extends com.tangosol.net.events.Event<? extends Enum>>, com.tangosol.net.events.internal.AbstractEventDispatcher.EventStats
      • Nested classes/interfaces inherited from interface com.tangosol.net.events.EventDispatcher

        com.tangosol.net.events.EventDispatcher.InterceptorRegistrationEvent<E extends com.tangosol.net.events.Event<? extends Enum>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static Set<Enum> EVENT_TYPES
      The event types raised by this dispatcher.
      • Fields inherited from class com.tangosol.net.events.internal.AbstractEventDispatcher

        f_mapInterceptors, f_setTypes, m_stats
    • Field Detail

      • EVENT_TYPES

        protected static final Set<Enum> EVENT_TYPES
        The event types raised by this dispatcher.
    • Method Detail

      • getSession

        @Deprecated(since="22.06.2")
        public GrpcRemoteSession getSession()
        Deprecated.
        Returns the session owning the cache.
        Returns:
        the session owning the cache
      • getCacheName

        public String getCacheName()
        Specified by:
        getCacheName in interface com.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
      • getServiceName

        public String getServiceName()
        Specified by:
        getServiceName in interface com.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
      • getScopeName

        public String getScopeName()
        Specified by:
        getScopeName in interface com.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
      • dispatchCacheCreated

        public void dispatchCacheCreated​(com.tangosol.net.NamedCache cache)
      • dispatchCacheDestroyed

        public void dispatchCacheDestroyed​(com.tangosol.net.NamedCache cache)
      • dispatchCacheTruncated

        public void dispatchCacheTruncated​(com.tangosol.net.NamedCache cache)
      • dispatchCacheEvent

        protected void dispatchCacheEvent​(com.tangosol.net.events.partition.cache.CacheLifecycleEvent.Type eventType,
                                          com.tangosol.net.NamedCache cache)
        Helper to perform the dispatch of a CacheLifecycleEvent being given its type
        Parameters:
        eventType - the enum representing the event type
        cache - the related cache