Package org.hertsstack.rpcclient
Interface HertsRpcClientIBuilder
-
- All Known Implementing Classes:
IBuilder
public interface HertsRpcClientIBuilder
Herts core client builder interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HertsRpcClientIBuilder
channel(io.grpc.Channel channel)
Channel for gRPCHertsRpcClient
connect()
Connect to serverHertsRpcClientIBuilder
grpcOption(GrpcClientOption option)
gRPC optionHertsRpcClientIBuilder
interceptor(io.grpc.ClientInterceptor interceptor)
Herts interceptorHertsRpcClientIBuilder
registerHertsRpcReceiver(org.hertsstack.core.service.HertsReceiver hertsReceiver)
Herts receiver service<T> HertsRpcClientIBuilder
registerHertsRpcServiceInterface(java.lang.Class<T> serviceClass)
Herts interface service Not implementation class.HertsRpcClientIBuilder
secure(boolean isSecureConnection)
Serure connection
-
-
-
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
-
grpcOption
HertsRpcClientIBuilder grpcOption(GrpcClientOption option)
gRPC option- Parameters:
option
- GrpcClientOption- Returns:
- HertsCoreClientBuilder
-
connect
HertsRpcClient connect()
Connect to server- Returns:
- HertsRpcClient
-
-