Class Janitor
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.jdisc.http.server.jetty.Janitor
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
public class Janitor
extends com.yahoo.component.AbstractComponent
Separate janitor threadpool for tasks that cannot be executed on the jdisc default threadpool due to risk of deadlock.
Modelled as a separate component as the underlying executor must be available across
JettyHttpServer
instances.- Author:
- bjorncs
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
Janitor
@Inject public Janitor()
-
-
Method Details
-
scheduleTask
-
deconstruct
public void deconstruct()- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-