Class BaseGrpcClient.DefaultDependencies

    • Constructor Detail

      • DefaultDependencies

        public DefaultDependencies​(String sName,
                                   io.grpc.Channel channel,
                                   com.tangosol.net.events.EventDispatcher dispatcher)
        Parameters:
        channel - the gRPC Channel to use
        dispatcher - the EventDispatcher to use for lifecycle events
    • Method Detail

      • getDeadline

        public long getDeadline()
        Description copied from interface: BaseGrpcClient.Dependencies
        Obtain a default rpc deadline value.

        If set to a value less than or equal to zero, a value of 30 seconds is used.

        Specified by:
        getDeadline in interface BaseGrpcClient.Dependencies
        Returns:
        the default request timeout
      • setScope

        public void setScope​(String sScopeName)
        Set the scope name.
        Parameters:
        sScopeName - the scope name
      • setSerializerFormat

        public void setSerializerFormat​(String sFormat)
        Set the serialization format to use for requests and responses.

        Calling this method will remove any Serializer set by calling setSerializer(Serializer) or setSerializer(Serializer, String).

        A Serializer configuration with the specified name must exist in the Coherence Operational Configuration.

        Parameters:
        sFormat - the serialization format and reference to a Serializer configuration in the Coherence Operational Configuration
      • setSerializer

        public void setSerializer​(com.tangosol.io.Serializer serializer)
        Set the Serializer to use for requests and response payloads.

        The serialization format used will be obtained by calling the Serializer.getName() method on the serializer.

        Parameters:
        serializer - the Serializer to use to serialize request and response payloads
      • setSerializer

        public void setSerializer​(com.tangosol.io.Serializer serializer,
                                  String sFormat)
        Set the Serializer and serialization format name to use for requests and response payloads.

        Parameters:
        serializer - the Serializer to use to serialize request and response payloads
        sFormat - the serialization format name
      • setDeadline

        public void setDeadline​(long cMillis)
        Set the rpc deadline to use.
        Parameters:
        cMillis - rpc deadline