Class ObjectBoxThreadPool

All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

@Internal public class ObjectBoxThreadPool extends ThreadPoolExecutor
Custom thread pool similar to Executors.newCachedThreadPool() with the following adjustments:
  • Release thread local resources (BoxStore.closeThreadResources())
  • Reduce keep-alive time for threads to 20 seconds
  • Uses a ThreadFactory to name threads like "ObjectBox-1-Thread-1"