Package io.grpc
Interface Configurator
- All Known Subinterfaces:
InternalConfigurator
interface Configurator
Provides hooks for modifying gRPC channels and servers during their construction.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
configureChannelBuilder
(ManagedChannelBuilder<?> channelBuilder) Allows implementations to modify the channel builder.default void
configureServerBuilder
(ServerBuilder<?> serverBuilder) Allows implementations to modify the server builder.
-
Method Details
-
configureChannelBuilder
Allows implementations to modify the channel builder.- Parameters:
channelBuilder
- the channel builder being constructed
-
configureServerBuilder
Allows implementations to modify the server builder.- Parameters:
serverBuilder
- the server builder being constructed
-