Class CoherenceGrpcClient
- java.lang.Object
 - 
- com.oracle.coherence.spring.boot.config.CoherenceGrpcClient
 
 
- 
- All Implemented Interfaces:
 AutoCloseable
public class CoherenceGrpcClient extends Object implements AutoCloseable
ACoherenceGrpcClientthat works with Coherence as a config source.- Since:
 - 3.0
 - Author:
 - Gunnar Hillert
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CoherenceGrpcClient(CoherenceConfigClientProperties coherenceConfigClientProperties) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.grpc.ManagedChannelbuildChannel(CoherenceConfigClientProperties coherenceConfigClientProperties)Builds gRPC channel.protected com.tangosol.net.SessionbuildSession(io.grpc.Channel grpcChannel, CoherenceConfigClientProperties coherenceConfigClientProperties)Builds Coherence session.voidclose()com.tangosol.net.SessiongetCoherenceSession() 
 - 
 
- 
- 
Field Detail
- 
logger
protected static final Log logger
 
 - 
 
- 
Constructor Detail
- 
CoherenceGrpcClient
public CoherenceGrpcClient(CoherenceConfigClientProperties coherenceConfigClientProperties)
 
 - 
 
- 
Method Detail
- 
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:
 closein interfaceAutoCloseable
 
 - 
 
 -