Hey @TarekSaid
The Java client is soon going to have a checkVersion method on client, which will help you setup a gRPC connection before performing any queries/mutations. Then I guess, you won’t need to setup any timeout for queries. You would just call checkVersion for the first time, then do any queries/mutations. If any timeouts are required, they would go to checkVersion as it will only be a one-time call.
Please refer this issue about the checkVersion call. Hope to get it out by the end of this week.