Package io.objectbox.exception
Class DbMaxReadersExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.objectbox.exception.DbException
io.objectbox.exception.DbMaxReadersExceededException
- All Implemented Interfaces:
Serializable
Thrown when the maximum of readers (read transactions) was exceeded.
Verify that your code only uses a reasonable amount of threads.
If a very high number of threads (>100) needs to be used, consider increasing the number of maximum readers
using BoxStoreBuilder.maxReaders(int)
and enabling query retries using
BoxStoreBuilder.queryAttempts(int)
.
For debugging issues related to this exception, check BoxStore.diagnose()
.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbMaxReadersExceededException
(String message) DbMaxReadersExceededException
(String message, int errorCode) -
Method Summary
Methods inherited from class io.objectbox.exception.DbException
getErrorCode, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DbMaxReadersExceededException
-
DbMaxReadersExceededException
-