Interface HertsRpcClientIBuilder

  • All Known Implementing Classes:
    IBuilder

    public interface HertsRpcClientIBuilder
    Herts core client builder interface
    • Method Detail

      • secure

        HertsRpcClientIBuilder secure​(boolean isSecureConnection)
        Serure connection
        Parameters:
        isSecureConnection - Secure
        Returns:
        HertsCoreClientBuilder
      • registerHertsRpcServiceInterface

        <T> HertsRpcClientIBuilder registerHertsRpcServiceInterface​(java.lang.Class<T> serviceClass)
        Herts interface service Not implementation class. Required @HertsRpc annotation
        Type Parameters:
        T - HertsService class type
        Parameters:
        serviceClass - HertsService
        Returns:
        HertsCoreClientBuilder
      • registerHertsRpcReceiver

        HertsRpcClientIBuilder registerHertsRpcReceiver​(org.hertsstack.core.service.HertsReceiver hertsReceiver)
        Herts receiver service
        Parameters:
        hertsReceiver - HertsReceiver
        Returns:
        HertsRpcClientIBuilder
      • channel

        HertsRpcClientIBuilder channel​(io.grpc.Channel channel)
        Channel for gRPC
        Parameters:
        channel - Channel
        Returns:
        HertsCoreClientBuilder
      • interceptor

        HertsRpcClientIBuilder interceptor​(io.grpc.ClientInterceptor interceptor)
        Herts interceptor
        Parameters:
        interceptor - ClientInterceptor
        Returns:
        HertsCoreClientBuilder
      • connect

        HertsRpcClient connect()
        Connect to server
        Returns:
        HertsRpcClient