You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,11 +122,49 @@ public class GreeterService extends GreeterGrpc.GreeterImplBase{
122
122
123
123
124
124
125
-
==On the roadmap
125
+
=== Custom gRPC Server Configuration
126
126
127
-
* Customized gRPC server builder with compression/decompression registry .
128
-
* Custom `Executor` service.
129
-
* Transport security.
127
+
To intercept the `io.grpc.ServerBuilder` instance used to build the `io.grpc.Server`, you can add bean that inherits from `org.lognet.springboot.grpc.GRpcServerBuilderConfigurer` to your context and override the `configure` method. +
128
+
By the time of invocation of `configure` method, all discovered services, including theirs interceptors, had been added to the passed builder. +
129
+
In your implementation of `configure` method, you can continue with passed instance of `ServerBuilder` by addition your configuration:
130
+
131
+
[source,java]
132
+
----
133
+
@Bean
134
+
public MyGRpcServerBuilderConfigurer extends GRpcServerBuilderConfigurer(){
135
+
@Override
136
+
public ServerBuilder<?> configure(ServerBuilder<?> serverBuilder){
0 commit comments