Class CoherenceGrpcClient

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CoherenceGrpcClient
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A CoherenceGrpcClient that works with Coherence as a config source.
    Since:
    3.0
    Author:
    Gunnar Hillert
    • Field Detail

      • logger

        protected static final Log logger
    • 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 null
        coherenceConfigClientProperties - 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 interface java.lang.AutoCloseable