Interface HertsRpcClient

  • All Known Implementing Classes:
    HertsRpcClientBuilder

    public interface HertsRpcClient
    Herts core client
    • Method Detail

      • getConnectedHost

        java.lang.String getConnectedHost()
        Get connected host
        Returns:
        Connected host
      • isSecureConnection

        boolean isSecureConnection()
        Is secure or not
        Returns:
        Result
      • getChannel

        io.grpc.ManagedChannel getChannel()
        Get channel
        Returns:
        ManagedChannel
      • getClientConnection

        org.hertsstack.rpcclient.ClientConnection getClientConnection()
        Get client connection
        Returns:
        modelx.ClientConnection
      • createHertsRpcService

        <T extends org.hertsstack.core.service.HertsService> T createHertsRpcService​(java.lang.Class<T> interfaceClass)
        Create herts core interface
        Type Parameters:
        T - Generics
        Parameters:
        interfaceClass - Class type
        Returns:
        HertsService
      • createHertsRpcService

        <T extends org.hertsstack.core.service.HertsService> T createHertsRpcService​(java.lang.Class<T> interfaceClass,
                                                                                     io.grpc.CallCredentials credentials)
        Create herts core interface
        Type Parameters:
        T - Generics
        Parameters:
        interfaceClass - Class type
        credentials - CallCredentials if you want set authentication
        Returns:
        HertsService
      • getHertsCoreType

        org.hertsstack.core.context.HertsType getHertsCoreType()
        Get registered herts type
        Returns:
        HertsType
      • getClient

        java.lang.String getClient()
        Get clientId.
        Returns:
        ClientId string