javax.annotation.PreDestroy.<init>()方法的使用及代码示例

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

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

PreDestroy.<init>介绍

暂无

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
protected void destroy() {
  this.number = null;
  this.text = null;
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
  public void destroy() {
  }
}

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

@PreDestroy
public void stop()
{
  nodeManager.removeNodeChangeListener(listener);
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
  private void destroy() {
    if (this.destroyCalled) {
      throw new IllegalStateException("Already called");
    }
    this.destroyCalled = true;
  }
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
  @Override
  public void destroy() throws Exception {
    this.destroyMethods.add("@PreDestroy.destroy");
  }
}

代码示例来源:origin: spring-projects/spring-framework

@Override
  @PreDestroy
  public void destroy() throws Exception {
    this.destroyMethods.add("destroy");
  }
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
  public void preDestroy() throws Exception {
    this.destroyMethods.add("preDestroy");
  }
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
public void destroy() {
  logger.info("destroying");
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
public void afterTestSuite() {
  logger.info("afterTestSuite()");
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
protected void destroy2() {
  if (this.destroyCalled) {
    throw new IllegalStateException("Superclass destroy called too soon");
  }
  if (this.destroy2Called) {
    throw new IllegalStateException("Already called");
  }
  this.destroy2Called = true;
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
private void destroy() {
  if (this.destroyCalled) {
    throw new IllegalStateException("Superclass destroy called too soon");
  }
  if (this.destroy3Called) {
    throw new IllegalStateException("Already called");
  }
  this.destroy3Called = true;
}

代码示例来源:origin: spring-projects/spring-framework

@Override
  @PreDestroy
  protected void destroy2() {
    super.destroy2();
  }
}

代码示例来源:origin: spring-projects/spring-framework

@Override
  @PreDestroy
  protected void destroy2() {
    super.destroy2();
  }
}

代码示例来源:origin: spring-projects/spring-framework

@PreDestroy
default void destroyDefault() {
  increaseCounter();
}

相关文章

PreDestroy类方法