Interface GrpcChannelService
- All Known Implementing Classes:
GrpcChannelServiceImpl
@Internal
public interface GrpcChannelService
The API used for gRPC connectivity and providing Bamboo instance state dependent additions.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescription@NotNull io.grpc.ManagedChannel
createClientChannel
(String hostName, int port, Executor executor) Create client channel respectingSystemProperty.BAMBOO_GRPC_AUTHENTICATION_ENABLED
setting.@NotNull io.grpc.ServerCredentials
Generate ServerCredentials to be used with gRPC server when authentication is enabled.
-
Method Details
-
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_ENABLED
setting.- 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
-