java grpc server how to handle RejectedExecutionException

13 views
Skip to first unread message

fangli...@126.com

unread,
Jun 10, 2019, 11:48:16 PM6/10/19
to grpc.io
hi all
       when build a grpc server by ServerBuilder, I use the ServerBuilder.executor(myExecutor) to bind my own executor. I set the max thread count 、queue capacity and throw rejectExecutionException when the executor is full in the myExecutor.

       my question is : when the executor is full, how to catch the exception and converted to the grpc status. Also I want the grpc client distinguish the error is cause by the reject of executor.

 
       thank you.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages