Class SiteAwareThreadPoolExecutor
java.lang.Object
org.craftercms.engine.util.concurrent.SiteAwareThreadPoolExecutor
- All Implemented Interfaces:
Executor
Utility class that wraps a
Executor
object to support SiteContext
in reusable threads- Since:
- 3.1
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionprotected SiteContext
TheSiteContext
to use for all threadsprotected Executor
The actualExecutor
to use -
Constructor Summary
ConstructorDescriptionSiteAwareThreadPoolExecutor
(SiteContext siteContext, Executor wrappedExecutor) -
Method Summary
-
Field Details
-
siteContext
TheSiteContext
to use for all threads -
wrappedExecutor
The actualExecutor
to use
-
-
Constructor Details
-
SiteAwareThreadPoolExecutor
-
-
Method Details