builder.eventLoopGroup( new NioEventLoopGroup(2) );
builder.executor( new ThreadPoolExecutor( 1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>( 10000 ));
1) The 2 EventLoop threads will be used to process data from the network?
2) The single user thread will be used for callbacks from grpc layer to my application layer?
Now if I change my ManagedChannel to:
NettyChannelBuilder builder = NettyChannelBuilder.forAddress( host, port );
builder.eventLoopGroup( new NioEventLoopGroup(2) );
builder.directExecutor();
1) Will one of the event loop threads will do the work of user thread?
2) When I try this scenario, I see that a thread called [grpc-default-executor-0] is created. What does this thread intended to do?