Package org.voltdb.client
Class RequestLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.voltdb.client.RequestLimitException
- All Implemented Interfaces:
Serializable
This exception can be thrown by any of the
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.
- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString