gpt4 book ai didi

org.quartz.simpl.ZeroSizeThreadPool类的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 07:55:31 31 4
gpt4 key购买 nike

本文整理了Java中org.quartz.simpl.ZeroSizeThreadPool类的一些代码示例,展示了ZeroSizeThreadPool类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeroSizeThreadPool类的具体详情如下:
包路径:org.quartz.simpl.ZeroSizeThreadPool
类名称:ZeroSizeThreadPool

ZeroSizeThreadPool介绍

[英]This is class is a simple implementation of a zero size thread pool, based on the org.quartz.spi.ThreadPool interface.

The pool has zero Threads and does not grow or shrink based on demand. Which means it is obviously not useful for most scenarios. When it may be useful is to prevent creating any worker threads at all - which may be desirable for the sole purpose of preserving system resources in the case where the scheduler instance only exists in order to schedule jobs, but which will never execute jobs (e.g. will never have start() called on it).
[中]这是一个基于org.quartz.spi.ThreadPool接口的零大小线程池的简单实现。
该池没有Thread个,不会根据需求增长或收缩。这意味着它显然不适用于大多数场景。当它可能有用时,可以完全防止创建任何工作线程——这可能是出于保存系统资源的唯一目的,在调度器实例只存在于调度作业的情况下,但它永远不会执行作业(例如,永远不会对其调用start())。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

public void shutdown(boolean waitForJobsToComplete) {
  getLog().debug("shutdown complete");
}

代码示例来源:origin: quartz-scheduler/quartz

public void shutdown() {
  shutdown(true);
}

代码示例来源:origin: quartz-scheduler/quartz

public void shutdown() {
  shutdown(true);
}

代码示例来源:origin: quartz-scheduler/quartz

public void shutdown(boolean waitForJobsToComplete) {
  getLog().debug("shutdown complete");
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

public void shutdown() {
  shutdown(true);
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

public void shutdown(boolean waitForJobsToComplete) {
  getLog().debug("shutdown complete");
}

代码示例来源:origin: quartz/quartz-all

public void shutdown() {
  shutdown(true);
}

代码示例来源:origin: quartz/quartz-all

public void shutdown(boolean waitForJobsToComplete) {
  getLog().debug("shutdown complete");
}

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com