Class BaseGrpcCacheScheme<S extends Service>
- java.lang.Object
-
- com.tangosol.coherence.config.scheme.AbstractScheme
-
- com.tangosol.coherence.config.scheme.AbstractServiceScheme<D>
-
- com.tangosol.coherence.config.scheme.AbstractCachingScheme<T>
-
- com.tangosol.coherence.config.scheme.BaseGrpcScheme<com.tangosol.internal.net.grpc.DefaultRemoteGrpcCacheServiceDependencies,S>
-
- com.tangosol.coherence.config.scheme.BaseGrpcCacheScheme<S>
-
- All Implemented Interfaces:
BackingMapManagerBuilder
,MapBuilder
,NamedCacheBuilder
,ServiceBuilder
,CachingScheme
,ObservableCachingScheme
,Scheme
,ServiceScheme
public class BaseGrpcCacheScheme<S extends Service> extends BaseGrpcScheme<com.tangosol.internal.net.grpc.DefaultRemoteGrpcCacheServiceDependencies,S>
TheBaseGrpcCacheScheme
is responsible for building a remote gRPC cache service.This class is sub-classed in the Coherence Java gRPC client module and that subclass does all the actual work. This allows the grpc remote scheme to be added to a cache configuration file even if the gRPC client is not on the class path and nothing will break.
- Since:
- 22.06.2
- Author:
- Jonathan Knight 2022.08.25
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
m_serviceDependencies
-
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
-
-
Constructor Summary
Constructors Constructor Description BaseGrpcCacheScheme()
Constructs aBaseGrpcCacheScheme
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected S
ensureService(String sService, Cluster cluster)
Call theCluster.ensureService(String, String)
method to obtain the service.String
getServiceType()
Return the service type.-
Methods inherited from class com.tangosol.coherence.config.scheme.BaseGrpcScheme
getServiceProvider, isRunningClusterNeeded, setRemoteScopeName
-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validate
-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
-
Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
-
-
-
-
Constructor Detail
-
BaseGrpcCacheScheme
public BaseGrpcCacheScheme()
Constructs aBaseGrpcCacheScheme
.
-
-
Method Detail
-
getServiceType
public String getServiceType()
Description copied from interface:ServiceScheme
Return the service type.- Returns:
- the service type
-
ensureService
protected S ensureService(String sService, Cluster cluster)
Description copied from class:AbstractServiceScheme
Call theCluster.ensureService(String, String)
method to obtain the service.- Overrides:
ensureService
in classAbstractServiceScheme<com.tangosol.internal.net.grpc.DefaultRemoteGrpcCacheServiceDependencies>
- Parameters:
sService
- the name of the servicecluster
- theCluster
to obtain the service from- Returns:
- the ensured service
-
-