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:
java.io.Serializable
public class DbMaxReadersExceededException extends DbException
Thrown when the maximum of readers (read transactions) was exceeded. Verify that you run a reasonable amount of threads only.If you intend to work with a very high number of threads (>100), consider increasing the number of maximum readers using
BoxStoreBuilder.maxReaders(int)and enabling query retries usingBoxStoreBuilder.queryAttempts(int).For debugging issues related to this exception, check
BoxStore.diagnose().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DbMaxReadersExceededException(java.lang.String message)DbMaxReadersExceededException(java.lang.String message, int errorCode)
-
Method Summary
-
Methods inherited from class io.objectbox.exception.DbException
getErrorCode, toString
-
-