Package org.hertsstack.rpcclient
Interface HertsRpcClientIBuilder
-
- All Known Implementing Classes:
IBuilder
public interface HertsRpcClientIBuilderHerts core client builder interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HertsRpcClientIBuilderchannel(io.grpc.Channel channel)Channel for gRPCHertsRpcClientconnect()Connect to serverHertsRpcClientIBuildergrpcOption(GrpcClientOption option)gRPC optionHertsRpcClientIBuilderinterceptor(io.grpc.ClientInterceptor interceptor)Herts interceptorHertsRpcClientIBuilderregisterHertsRpcReceiver(org.hertsstack.core.service.HertsReceiver hertsReceiver)Herts receiver service<T> HertsRpcClientIBuilderregisterHertsRpcServiceInterface(java.lang.Class<T> serviceClass)Herts interface service Not implementation class.HertsRpcClientIBuildersecure(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
-
-