Interface GrpcChannelService
-
- All Known Implementing Classes:
GrpcChannelServiceImpl
@Internal public interface GrpcChannelServiceThe API used for gRPC connectivity and providing Bamboo instance state dependent additions.- Since:
- 9.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull io.grpc.ManagedChannelcreateClientChannel(String hostName, int port, Executor executor)Create client channel respectingSystemProperty.BAMBOO_GRPC_AUTHENTICATION_ENABLEDsetting.@NotNull io.grpc.ServerCredentialsgetServerCredentials()Generate ServerCredentials to be used with gRPC server when authentication is enabled.
-
-
-
Method Detail
-
getServerCredentials
@NotNull @NotNull io.grpc.ServerCredentials getServerCredentials()
Generate ServerCredentials to be used with gRPC server when authentication is enabled.- Returns:
- ServerCredentials with mutual TLS configured
-
createClientChannel
@NotNull @NotNull io.grpc.ManagedChannel createClientChannel(String hostName, int port, Executor executor)
Create client channel respectingSystemProperty.BAMBOO_GRPC_AUTHENTICATION_ENABLEDsetting.- Parameters:
hostName- hostname to which the client will connect toport- port to which the client will connect toexecutor- executor used with this client- Returns:
- managed channel
-
-