Class CoherenceGrpcClient
java.lang.Object
com.oracle.coherence.spring.boot.config.CoherenceGrpcClient
- All Implemented Interfaces:
AutoCloseable
A
CoherenceGrpcClient
that works with Coherence as a config source.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCoherenceGrpcClient
(CoherenceConfigClientProperties coherenceConfigClientProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.grpc.ManagedChannel
buildChannel
(CoherenceConfigClientProperties coherenceConfigClientProperties) Builds gRPC channel.protected com.tangosol.net.Session
buildSession
(io.grpc.Channel grpcChannel, CoherenceConfigClientProperties coherenceConfigClientProperties) Builds Coherence session.void
close()
com.tangosol.net.Session
-
Field Details
-
logger
-
-
Constructor Details
-
CoherenceGrpcClient
-
-
Method Details
-
getCoherenceSession
public com.tangosol.net.Session getCoherenceSession() -
buildSession
protected com.tangosol.net.Session buildSession(io.grpc.Channel grpcChannel, CoherenceConfigClientProperties coherenceConfigClientProperties) Builds Coherence session.- Parameters:
grpcChannel
- mMust not be nullcoherenceConfigClientProperties
- must not be null- Returns:
- a Coherence Session
-
buildChannel
protected io.grpc.ManagedChannel buildChannel(CoherenceConfigClientProperties coherenceConfigClientProperties) Builds gRPC channel.- Parameters:
coherenceConfigClientProperties
- must not be null- Returns:
- gRPC channel
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-