![]() ![]() However, if the queue is already stopped, the job will be immediately cancelled. Jobs may be added to the queue before or after the queue is started. The queue must be started in order for jobs to start executing. Job may provide a return value, which will be treated as the job result. The added job's SQLiteJob#job} method will be called from the database thread with an instance SQLiteConnection}. Places a job in the queue for asynchronous execution in database thread. Further, the general contract of the method is to avoid, suppress, or abort execution if interruption is detected in any controllable context surrounding execution. However, the method does throw InterruptedException: It will fail to arrange for execution if the current thread is currently interrupted. If necessary, any context-dependent catastrophic errors encountered during actions that arrange for execution could be accompanied by throwing context-dependent unchecked exceptions. ![]() ![]() Generally, any problems encountered will be asynchronous and so must be dealt with via callbacks or error handler objects. The method is defined not to throw any checked exceptions during execution of the command. However, in fully generic use, callers should be prepared for execution to occur in any fashion at all, including immediate direct execution. This method is guaranteed only to arrange for execution, that may actually occur sometime later for example in a new thread. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |