Package org.hertsstack.rpcclient
Interface HertsRpcClient
-
- All Known Implementing Classes:
HertsRpcClientBuilder
public interface HertsRpcClient
Herts core client
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends org.hertsstack.core.service.HertsService>
TcreateHertsRpcService(java.lang.Class<T> interfaceClass)
Create herts core interface<T extends org.hertsstack.core.service.HertsService>
TcreateHertsRpcService(java.lang.Class<T> interfaceClass, io.grpc.CallCredentials credentials)
Create herts core interfaceio.grpc.ManagedChannel
getChannel()
Get channeljava.lang.String
getClient()
Get clientId.org.hertsstack.rpcclient.ClientConnection
getClientConnection()
Get client connectionjava.lang.String
getConnectedHost()
Get connected hostorg.hertsstack.core.context.HertsType
getHertsCoreType()
Get registered herts typeboolean
isSecureConnection()
Is secure or not
-
-
-
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 typecredentials
- 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
-
-