Class DefaultContainerThreadpool
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.container.handler.threadpool.DefaultContainerThreadpool
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,ContainerThreadPool
,AutoCloseable
,Comparable<com.yahoo.component.Component>
public class DefaultContainerThreadpool
extends com.yahoo.component.AbstractComponent
implements AutoCloseable, ContainerThreadPool
Default implementation of
ContainerThreadPool
.- Author:
- Steinar Knutsen, baldersheim, bratseth, bjorncs
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultContainerThreadpool
(ContainerThreadpoolConfig config, com.yahoo.jdisc.Metric metric) DefaultContainerThreadpool
(ContainerThreadpoolConfig config, com.yahoo.jdisc.Metric metric, ProcessTerminator processTerminator) -
Method Summary
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
DefaultContainerThreadpool
@Inject public DefaultContainerThreadpool(ContainerThreadpoolConfig config, com.yahoo.jdisc.Metric metric) -
DefaultContainerThreadpool
public DefaultContainerThreadpool(ContainerThreadpoolConfig config, com.yahoo.jdisc.Metric metric, ProcessTerminator processTerminator)
-
-
Method Details
-
executor
- Specified by:
executor
in interfaceContainerThreadPool
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceContainerThreadPool
-
deconstruct
public void deconstruct()- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-