Package com.oracle.coherence.client
Class GrpcRemoteSession
- java.lang.Object
-
- com.oracle.coherence.client.GrpcRemoteSession
-
- All Implemented Interfaces:
com.tangosol.net.Session,AutoCloseable
@Deprecated(since="22.06.2") public class GrpcRemoteSession extends Object implements com.tangosol.net.Session
Deprecated.A clientSessionthat connects to a remote gRPC proxy.- Since:
- 20.06
- Author:
- Jonathan Knight 2020.09.22
-
-
Field Summary
Fields Modifier and Type Field Description protected Executorf_executorDeprecated.TheExecutorto use to dispatch events.protected com.tangosol.util.ResourceRegistryf_registryDeprecated.This session'sResourceRegistry.protected io.grpc.ClientInterceptorf_tracingInterceptorDeprecated.The optional client tracer to use.protected booleanm_fActivatedDeprecated.A flag indicating whether this session has been activated.protected booleanm_fClosedDeprecated.A flag indicating whether this session has been closed.
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcRemoteSession(io.grpc.Channel channel, String sName, String sScopeName, com.tangosol.io.Serializer serializer, String sFormat, io.grpc.ClientInterceptor tracingInterceptor, Iterable<? extends com.tangosol.net.events.EventInterceptor<?>> interceptors)Deprecated.Constructs a newGrpcRemoteSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactivate()Deprecated.voidclose()Deprecated.protected <K,V>
AsyncNamedCacheClient<K,V>ensureCache(String sCacheName)Deprecated.Creates aAsyncNamedCacheClientbased on the provided arguments.booleanequals(Object o)Deprecated.<K,V>
AsyncNamedCacheClient<K,V>getAsyncCache(String sCacheName, com.tangosol.net.NamedMap.Option... options)Deprecated.Return theAsyncNamedCacheClientbased on the provided arguments.<K,V>
com.tangosol.net.NamedCache<K,V>getCache(String cacheName, com.tangosol.net.NamedMap.Option... options)Deprecated.Set<String>getCacheNames()Deprecated.Returns the set of names of currently active caches that have been previously created by this session.protected io.grpc.ChannelgetChannel()Deprecated.Return the communication channel.com.tangosol.net.events.InterceptorRegistrygetInterceptorRegistry()Deprecated.<K,V>
com.tangosol.net.NamedMap<K,V>getMap(String sName, com.tangosol.net.NamedMap.Option... options)Deprecated.StringgetName()Deprecated.Obtain the optional name of this session.com.tangosol.util.ResourceRegistrygetResourceRegistry()Deprecated.StringgetScopeName()Deprecated.Obtain the scope name used to link thisGrpcRemoteSessionto theConfigurableCacheFactoryon the server that has the corresponding scope.com.tangosol.io.SerializergetSerializer()Deprecated.Return theSerializer.StringgetSerializerFormat()Deprecated.Return the serialization format.com.tangosol.net.ServicegetService(String sServiceName)Deprecated.<V> com.tangosol.net.topic.NamedTopic<V>getTopic(String sName, com.tangosol.net.NamedCollection.Option... options)Deprecated.inthashCode()Deprecated.booleanisActive()Deprecated.booleanisCacheActive(String sCacheName, ClassLoader loader)Deprecated.booleanisClosed()Deprecated.Returnstrueif this session has been closed, otherwise returnsfalse.booleanisMapActive(String sMapName, ClassLoader loader)Deprecated.booleanisTopicActive(String sTopicName, ClassLoader loader)Deprecated.Stringscope()Deprecated.Obtain the scope name of this session.StringtoString()Deprecated.
-
-
-
Field Detail
-
f_tracingInterceptor
protected final io.grpc.ClientInterceptor f_tracingInterceptor
Deprecated.The optional client tracer to use.
-
m_fActivated
protected boolean m_fActivated
Deprecated.A flag indicating whether this session has been activated.
-
m_fClosed
protected boolean m_fClosed
Deprecated.A flag indicating whether this session has been closed.
-
f_registry
protected final com.tangosol.util.ResourceRegistry f_registry
Deprecated.This session'sResourceRegistry.
-
-
Constructor Detail
-
GrpcRemoteSession
protected GrpcRemoteSession(io.grpc.Channel channel, String sName, String sScopeName, com.tangosol.io.Serializer serializer, String sFormat, io.grpc.ClientInterceptor tracingInterceptor, Iterable<? extends com.tangosol.net.events.EventInterceptor<?>> interceptors)Deprecated.Constructs a newGrpcRemoteSession.- Parameters:
channel- the gRPCChannelto usesName- the name of the sessionsScopeName- the scope name of the sessionserializer- the serializer to use for message payloadssFormat- the name of the serializer formattracingInterceptor- an optional client tracing interceptorinterceptors- optional interceptors to add to the session
-
-
Method Detail
-
activate
public void activate()
Deprecated.- Specified by:
activatein interfacecom.tangosol.net.Session
-
isActive
public boolean isActive()
Deprecated.- Specified by:
isActivein interfacecom.tangosol.net.Session
-
getScopeName
public String getScopeName()
Deprecated.Obtain the scope name used to link thisGrpcRemoteSessionto theConfigurableCacheFactoryon the server that has the corresponding scope.- Specified by:
getScopeNamein interfacecom.tangosol.net.Session- Returns:
- the scope name for this
GrpcRemoteSession
-
getName
public String getName()
Deprecated.Obtain the optional name of this session.- Specified by:
getNamein interfacecom.tangosol.net.Session- Returns:
- the name of this session or
nullif this session has no name
-
scope
public String scope()
Deprecated.Obtain the scope name of this session.The scope name is used to identify the ConfigurableCacheFactory on the server that owns the resources that this session connects to, for example maps, caches and topics.
In most use cases the default scope name is used, but when the server has multiple scoped ConfigurableCacheFactory instances the scope name can be specified to link the session to a ConfigurableCacheFactory.
- Returns:
- the scope name of this session
-
getMap
public <K,V> com.tangosol.net.NamedMap<K,V> getMap(String sName, com.tangosol.net.NamedMap.Option... options)
Deprecated.- Specified by:
getMapin interfacecom.tangosol.net.Session
-
getCache
public <K,V> com.tangosol.net.NamedCache<K,V> getCache(String cacheName, com.tangosol.net.NamedMap.Option... options)
Deprecated.- Specified by:
getCachein interfacecom.tangosol.net.Session
-
getTopic
public <V> com.tangosol.net.topic.NamedTopic<V> getTopic(String sName, com.tangosol.net.NamedCollection.Option... options)
Deprecated.- Specified by:
getTopicin interfacecom.tangosol.net.Session
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable
-
getResourceRegistry
public com.tangosol.util.ResourceRegistry getResourceRegistry()
Deprecated.- Specified by:
getResourceRegistryin interfacecom.tangosol.net.Session
-
getInterceptorRegistry
public com.tangosol.net.events.InterceptorRegistry getInterceptorRegistry()
Deprecated.- Specified by:
getInterceptorRegistryin interfacecom.tangosol.net.Session
-
isCacheActive
public boolean isCacheActive(String sCacheName, ClassLoader loader)
Deprecated.- Specified by:
isCacheActivein interfacecom.tangosol.net.Session
-
isMapActive
public boolean isMapActive(String sMapName, ClassLoader loader)
Deprecated.- Specified by:
isMapActivein interfacecom.tangosol.net.Session
-
isTopicActive
public boolean isTopicActive(String sTopicName, ClassLoader loader)
Deprecated.- Specified by:
isTopicActivein interfacecom.tangosol.net.Session
-
getService
public com.tangosol.net.Service getService(String sServiceName)
Deprecated.- Specified by:
getServicein interfacecom.tangosol.net.Session
-
getCacheNames
public Set<String> getCacheNames()
Deprecated.Returns the set of names of currently active caches that have been previously created by this session.- Returns:
- the set of cache names
-
isClosed
public boolean isClosed()
Deprecated.Returnstrueif this session has been closed, otherwise returnsfalse.- Returns:
trueif this session has been closed, otherwisefalse
-
getChannel
protected io.grpc.Channel getChannel()
Deprecated.Return the communication channel.- Returns:
- the communication channel
-
getSerializer
public com.tangosol.io.Serializer getSerializer()
Deprecated.Return theSerializer.- Returns:
- the
Serializer
-
getSerializerFormat
public String getSerializerFormat()
Deprecated.Return the serialization format.- Returns:
- the serialization format
-
getAsyncCache
public <K,V> AsyncNamedCacheClient<K,V> getAsyncCache(String sCacheName, com.tangosol.net.NamedMap.Option... options)
Deprecated.Return theAsyncNamedCacheClientbased on the provided arguments.- Type Parameters:
K- the key typeV- the value type- Parameters:
sCacheName- the cache nameoptions- the cache options- Returns:
- the
AsyncNamedCacheClient
-
ensureCache
protected <K,V> AsyncNamedCacheClient<K,V> ensureCache(String sCacheName)
Deprecated.Creates aAsyncNamedCacheClientbased on the provided arguments.- Type Parameters:
K- the key typeV- the value type- Parameters:
sCacheName- the cache name- Returns:
- a new
AsyncNamedCacheClient
-
-