The Aerospike Java Client offers the use of custom threadpool configuration. If the Java client ClientPolicy.threadPool is configured to use ThreadPoolExecutor and a non-retryable exception is thrown due to ressource exhaustion, would that exception be passed to the caller?
All non-retryable exceptions are passed back to the caller. In Aerospike Java client, assuming a caller’s threadPool.execute() fails, the RejectedExecutionException is passed to the caller. (for example: the caller of the scanAll method).
Java API exceptions handling
JAVA API EXCEPTIONS