Class RequestLimitException

All Implemented Interfaces:
Serializable

public class RequestLimitException extends RuntimeException
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: