Package io.micronaut.grpc.server
Class GrpcServerChannel
java.lang.Object
io.micronaut.grpc.server.GrpcServerChannel
A factory that returns a 
ManagedChannel allowing communication with the embedded server.
 Primarily used for testing.- Since:
 - 1.0
 - Author:
 - graemerocher
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected io.grpc.ManagedChannelserverChannel(GrpcEmbeddedServer server, ExecutorService executorService, List<io.grpc.ClientInterceptor> clientInterceptors) Constructs a managed server channel. 
- 
Field Details
- 
NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
GrpcServerChannel
public GrpcServerChannel() 
 - 
 - 
Method Details
- 
serverChannel
@Singleton @Named("grpc-server") @Requires(beans=GrpcEmbeddedServer.class) @Bean(preDestroy="shutdown") protected io.grpc.ManagedChannel serverChannel(GrpcEmbeddedServer server, @Named("io") ExecutorService executorService, List<io.grpc.ClientInterceptor> clientInterceptors) Constructs a managed server channel.- Parameters:
 server- The serverexecutorService- The executor serviceclientInterceptors- The client interceptors- Returns:
 - The channel
 
 
 -