Package org.cache2k.core.timing
Class DefaultSchedulerProvider
- java.lang.Object
-
- org.cache2k.core.timing.DefaultSchedulerProvider
-
- All Implemented Interfaces:
org.cache2k.config.CustomizationSupplier<org.cache2k.operation.Scheduler>
public class DefaultSchedulerProvider extends Object implements org.cache2k.config.CustomizationSupplier<org.cache2k.operation.Scheduler>
Provides scheduler instances for caches which are backed by a commonScheduledThreadPoolExecutorand two threads. The actual processing is done via the common ForkJoinPool to reach higher parallelism if many caches are active within a system.When all caches are closed, this will also stop the daemon threads. This is needed in case cache2k is used with separate classloaders.
- Author:
- Jens Wilke
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultSchedulerProviderINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.cache2k.operation.Schedulersupply(org.cache2k.config.CacheBuildContext<?,?> buildContext)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultSchedulerProvider INSTANCE
-
-