javax.annotation.PreDestroy类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(255)

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

PreDestroy介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

@PreDestroy
public void shutdown()
{
  coreExecutor.shutdownNow();
}

代码示例来源:origin: weibocom/motan

@PreDestroy
void destory() {
  zkClient = null;
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public synchronized void stop()
{
  closed = true;
  executor.shutdownNow();
  splitMonitorExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void destroy()
{
  refreshExecutor.shutdownNow();
}

代码示例来源:origin: alibaba/nacos

@PreDestroy
public void destroy() {
  scheduledExecutorService.shutdown();
}

代码示例来源:origin: weibocom/motan

@PreDestroy
void destory() {
  consulClient = null;
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void stop()
{
  coreExecutor.shutdownNow();
  updateScheduledExecutor.shutdownNow();
  errorScheduledExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void stop()
{
  queryPurger.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void shutdown()
{
  coreExecutor.shutdownNow();
}

代码示例来源:origin: ethereum/ethereumj

@PreDestroy
  public void close() {
//        try {
//            logger.info("Closing TransactionStore...");
//            super.close();
//        } catch (Exception e) {
//            logger.warn("Problems closing TransactionStore", e);
//        }
  }
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void stop()
{
  queryTracker.stop();
  queryManagementExecutor.shutdownNow();
  queryExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void close()
{
  taskManagementExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void stop()
{
  pageBufferClientCallbackExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
  public void shutdown()
  {
    executors.forEach(ExecutorService::shutdownNow);
  }
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void stop()
{
  nodeStateUpdateExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void shutdown()
{
  executor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
  public void shutdown()
  {
    executors.forEach(ExecutorService::shutdownNow);
  }
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void destroy()
{
  configExecutor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void shutdown()
{
  executor.shutdownNow();
}

代码示例来源:origin: prestodb/presto

@PreDestroy
public void shutdown()
{
  executor.shutdownNow();
}

相关文章

PreDestroy类方法