Package com.oracle.coherence.client
Class AsyncNamedCacheClient.DefaultDependencies
- java.lang.Object
-
- com.oracle.coherence.client.BaseGrpcClient.DefaultDependencies
-
- com.oracle.coherence.client.AsyncNamedCacheClient.DefaultDependencies
-
- All Implemented Interfaces:
AsyncNamedCacheClient.Dependencies,BaseGrpcClient.Dependencies
- Enclosing class:
- AsyncNamedCacheClient<K,V>
public static class AsyncNamedCacheClient.DefaultDependencies extends BaseGrpcClient.DefaultDependencies implements AsyncNamedCacheClient.Dependencies
The dependencies used to create anAsyncNamedCacheClient.
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencies(String sCacheName, io.grpc.Channel channel, GrpcCacheLifecycleEventDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<NamedCacheGrpcClient>getClient()Return the optionalNamedCacheGrpcClientto use.voidsetClient(NamedCacheGrpcClient client)Set the optionalNamedCacheGrpcClient.-
Methods inherited from class com.oracle.coherence.client.BaseGrpcClient.DefaultDependencies
getChannel, getDeadline, getEventDispatcher, getExecutor, getName, getScopeName, getSerializer, getSerializerFormat, setDeadline, setExecutor, setScope, setSerializer, setSerializer, setSerializerFormat
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.coherence.client.BaseGrpcClient.Dependencies
getChannel, getDeadline, getEventDispatcher, getExecutor, getName, getScopeName, getSerializer, getSerializerFormat
-
-
-
-
Constructor Detail
-
DefaultDependencies
public DefaultDependencies(String sCacheName, io.grpc.Channel channel, GrpcCacheLifecycleEventDispatcher dispatcher)
- Parameters:
sCacheName- the name of the underlying cache that theAsyncNamedCacheClientwill representchannel- the gRPCChannelto use
-
-
Method Detail
-
getClient
public Optional<NamedCacheGrpcClient> getClient()
Description copied from interface:AsyncNamedCacheClient.DependenciesReturn the optionalNamedCacheGrpcClientto use.- Specified by:
getClientin interfaceAsyncNamedCacheClient.Dependencies- Returns:
- the optional
NamedCacheGrpcClientto use
-
setClient
public void setClient(NamedCacheGrpcClient client)
Set the optionalNamedCacheGrpcClient.- Parameters:
client- the optionalNamedCacheGrpcClient
-
-