Package com.oracle.coherence.client
Class GrpcCacheLifecycleEventDispatcher
- java.lang.Object
-
- com.tangosol.net.events.internal.AbstractEventDispatcher
-
- com.oracle.coherence.client.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.CacheLifecycleEventDispatcherACacheLifecycleEventDispatcherused by aGrpcRemoteCacheServiceto dispatch cache lifecycle events.- Author:
- Jonathan Knight 2020.11.16
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classGrpcCacheLifecycleEventDispatcher.AbstractEvent<T extends Enum<T>>AEventimplementation providing access to the dispatcher.protected static classGrpcCacheLifecycleEventDispatcher.GrpcCacheLifecycleEventCacheLifecycleEventimplementation 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_TYPESThe event types raised by this dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispatchCacheCreated(com.tangosol.net.NamedCache cache)voiddispatchCacheDestroyed(com.tangosol.net.NamedCache cache)protected voiddispatchCacheEvent(com.tangosol.net.events.partition.cache.CacheLifecycleEvent.Type eventType, com.tangosol.net.NamedCache cache)Helper to perform the dispatch of aCacheLifecycleEventbeing given its typevoiddispatchCacheTruncated(com.tangosol.net.NamedCache cache)StringgetCacheName()StringgetScopeName()GrpcRemoteCacheServicegetService()StringgetServiceName()GrpcRemoteSessiongetSession()Deprecated.-
Methods inherited from class com.tangosol.net.events.internal.AbstractEventDispatcher
addEventInterceptor, addEventInterceptor, addEventInterceptor, dispatchEvent, getDispatchContinuation, getInterceptorMap, getStats, getSupportedTypes, instantiateEvent, isSubscribed, removeEventInterceptor, removeEventInterceptor, removeEventInterceptor
-
-
-
-
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:
getCacheNamein interfacecom.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
-
getServiceName
public String getServiceName()
- Specified by:
getServiceNamein interfacecom.tangosol.net.events.partition.cache.CacheLifecycleEventDispatcher
-
getScopeName
public String getScopeName()
- Specified by:
getScopeNamein interfacecom.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)
-
getService
public GrpcRemoteCacheService getService()
-
dispatchCacheEvent
protected void dispatchCacheEvent(com.tangosol.net.events.partition.cache.CacheLifecycleEvent.Type eventType, com.tangosol.net.NamedCache cache)Helper to perform the dispatch of aCacheLifecycleEventbeing given its type- Parameters:
eventType- the enum representing the event typecache- the related cache
-
-