Class SiteAwareThreadPoolExecutor
- java.lang.Object
-
- org.craftercms.engine.util.concurrent.SiteAwareThreadPoolExecutor
-
- All Implemented Interfaces:
Executor
public class SiteAwareThreadPoolExecutor extends Object implements Executor
Utility class that wraps aExecutor
object to supportSiteContext
in reusable threads- Since:
- 3.1
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected SiteContext
siteContext
TheSiteContext
to use for all threadsprotected Executor
wrappedExecutor
The actualExecutor
to use
-
Constructor Summary
Constructors Constructor Description SiteAwareThreadPoolExecutor(SiteContext siteContext, Executor wrappedExecutor)
-
-
-
Field Detail
-
siteContext
protected SiteContext siteContext
TheSiteContext
to use for all threads
-
-
Constructor Detail
-
SiteAwareThreadPoolExecutor
public SiteAwareThreadPoolExecutor(SiteContext siteContext, Executor wrappedExecutor)
-
-