public class RequestLimitException
extends java.lang.RuntimeException
Client2
methods
that call a VoltDB procedure. In practice, it is more likely to
be encountered when using an async method. See, for example,
Client2.callProcedureAsync(String,Object...)
.
The exception indicates that the client has exceeded the hard request limit
on concurrent requests. The limit can be changed by use of
Client2Config.clientRequestLimit(int)
prior to constructing
the Client2
object.
For callProcedureAsync
variants, the exception is
delivered through the CompletableFuture
, as is usual.
For callProcedureSync
variants, the exception is raised
directly. However, unless highly multi-threaded, a synchronous
caller is unlikely to be able to exceed the limit. For this
reason, the RequestLimitException
is not defined
as a checked exception.