Package com.oracle.coherence.client
Class GrpcRemoteCacheService
- java.lang.Object
-
- com.oracle.coherence.client.GrpcRemoteService<com.tangosol.internal.net.grpc.RemoteGrpcCacheServiceDependencies>
-
- com.oracle.coherence.client.GrpcRemoteCacheService
-
- All Implemented Interfaces:
com.tangosol.io.ClassLoaderAware,com.tangosol.net.CacheService,com.tangosol.net.Service,com.tangosol.net.ServiceInfo,com.tangosol.util.Controllable,com.tangosol.util.Service
public class GrpcRemoteCacheService extends GrpcRemoteService<com.tangosol.internal.net.grpc.RemoteGrpcCacheServiceDependencies> implements com.tangosol.net.CacheService
A remote cache service that accesses caches via a remote gRPC proxy.- Since:
- 22.06.2
- Author:
- Jonathan Knight 2022.08.25
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.client.GrpcRemoteService
f_lock, m_channel, m_dependencies, m_EventDispatcherRegistry, m_executor, m_serializer, m_sScopeName, m_tracingInterceptor
-
-
Constructor Summary
Constructors Constructor Description GrpcRemoteCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyCache(com.tangosol.net.NamedCache map)protected <K,V>
AsyncNamedCacheClient<K,V>ensureAsyncCache(String sCacheName)Creates aAsyncNamedCacheClientbased on the provided arguments.com.tangosol.net.NamedCacheensureCache(String sName, ClassLoader ignored)com.tangosol.net.BackingMapManagergetBackingMapManager()EnumerationgetCacheNames()protected com.tangosol.net.events.EventDispatcherRegistrygetDefaultEventDispatcherRegistry()Return the defaultEventDispatcherRegistryto use.intgetMinimumServiceVersion()booleanisVersionCompatible(int nVersion)booleanisVersionCompatible(int nYear, int nMonth, int nPatch)booleanisVersionCompatible(int nMajor, int nMinor, int nMicro, int nPatchSet, int nPatch)booleanisVersionCompatible(IntPredicate predicate)voidreleaseCache(com.tangosol.net.NamedCache map)voidsetBackingMapManager(com.tangosol.net.BackingMapManager manager)protected voidstopInternal()Perform any stop tasks required by subclasses.-
Methods inherited from class com.oracle.coherence.client.GrpcRemoteService
addMemberListener, addServiceListener, configure, getChannel, getCluster, getContextClassLoader, getDependencies, getEventDispatcherRegistry, getExecutor, getInfo, getOldestMember, getResourceRegistry, getScopeName, getSerializer, getServiceMember, getServiceMembers, getServiceName, getServiceType, getServiceVersion, getUserContext, instantiateChannel, instantiateExecutor, instantiateSerializer, instantiateTracingInterceptor, isRunning, isSuspended, removeMemberListener, removeServiceListener, setChannel, setCluster, setContextClassLoader, setDependencies, setEventDispatcherRegistry, setExecutor, setScopeName, setSerializer, setServiceName, setTracingInterceptor, setUserContext, shutdown, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.io.ClassLoaderAware
getContextClassLoader, setContextClassLoader
-
Methods inherited from interface com.tangosol.util.Controllable
configure, isRunning, shutdown, start, stop
-
-
-
-
Method Detail
-
getBackingMapManager
public com.tangosol.net.BackingMapManager getBackingMapManager()
- Specified by:
getBackingMapManagerin interfacecom.tangosol.net.CacheService
-
setBackingMapManager
public void setBackingMapManager(com.tangosol.net.BackingMapManager manager)
- Specified by:
setBackingMapManagerin interfacecom.tangosol.net.CacheService
-
ensureCache
public com.tangosol.net.NamedCache ensureCache(String sName, ClassLoader ignored)
- Specified by:
ensureCachein interfacecom.tangosol.net.CacheService
-
getCacheNames
public Enumeration getCacheNames()
- Specified by:
getCacheNamesin interfacecom.tangosol.net.CacheService
-
releaseCache
public void releaseCache(com.tangosol.net.NamedCache map)
- Specified by:
releaseCachein interfacecom.tangosol.net.CacheService
-
destroyCache
public void destroyCache(com.tangosol.net.NamedCache map)
- Specified by:
destroyCachein interfacecom.tangosol.net.CacheService
-
isVersionCompatible
public boolean isVersionCompatible(int nMajor, int nMinor, int nMicro, int nPatchSet, int nPatch)- Specified by:
isVersionCompatiblein interfacecom.tangosol.net.Service
-
isVersionCompatible
public boolean isVersionCompatible(int nYear, int nMonth, int nPatch)- Specified by:
isVersionCompatiblein interfacecom.tangosol.net.Service
-
isVersionCompatible
public boolean isVersionCompatible(int nVersion)
- Specified by:
isVersionCompatiblein interfacecom.tangosol.net.Service
-
isVersionCompatible
public boolean isVersionCompatible(IntPredicate predicate)
- Specified by:
isVersionCompatiblein interfacecom.tangosol.net.Service
-
getMinimumServiceVersion
public int getMinimumServiceVersion()
- Specified by:
getMinimumServiceVersionin interfacecom.tangosol.net.Service
-
stopInternal
protected void stopInternal()
Description copied from class:GrpcRemoteServicePerform any stop tasks required by subclasses.- Specified by:
stopInternalin classGrpcRemoteService<com.tangosol.internal.net.grpc.RemoteGrpcCacheServiceDependencies>
-
getDefaultEventDispatcherRegistry
protected com.tangosol.net.events.EventDispatcherRegistry getDefaultEventDispatcherRegistry()
Description copied from class:GrpcRemoteServiceReturn the defaultEventDispatcherRegistryto use.- Specified by:
getDefaultEventDispatcherRegistryin classGrpcRemoteService<com.tangosol.internal.net.grpc.RemoteGrpcCacheServiceDependencies>- Returns:
- the default
EventDispatcherRegistryto use
-
ensureAsyncCache
protected <K,V> AsyncNamedCacheClient<K,V> ensureAsyncCache(String sCacheName)
Creates aAsyncNamedCacheClientbased on the provided arguments.- Type Parameters:
K- the key typeV- the value type- Parameters:
sCacheName- the cache name- Returns:
- a new
AsyncNamedCacheClient
-
-