javax.mail.Store.finalize()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(134)

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

Store.finalize介绍

暂无

代码示例

代码示例来源:origin: com.sun.mail/javax.mail

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

代码示例来源:origin: com.sun.mail/javax.mail

@Override
protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

代码示例来源:origin: com.sun.mail/jakarta.mail

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: com.sun.mail/pop3

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

protected void finalize() throws Throwable {
super.finalize();
if (port != null)	// don't force a connection attempt
  close();
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider

/**
   * Finalizer to perform IMAPStore() cleanup when 
   * no longer in use. 
   * 
   * @exception Throwable
   */
  protected void finalize() throws Throwable {
    super.finalize(); 
    close(); 
  }
}

代码示例来源:origin: com.sun.mail/android-mail

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

protected void finalize() throws Throwable {
super.finalize();
if (port != null)	// don't force a connection attempt
  close();
}

代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider

/**
 * Finalizer to perform IMAPStore() cleanup when 
 * no longer in use. 
 * 
 * @exception Throwable
 */
protected void finalize() throws Throwable {
  super.finalize(); 
  close(); 
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
protected void finalize() throws Throwable {
try {
  if (port != null)	// don't force a connection attempt
  close(!finalizeCleanClose);
} finally {
  super.finalize();
}
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

protected void finalize() throws Throwable {
super.finalize();
close();
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

protected void finalize() throws Throwable {
super.finalize();
close();
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

@Override
protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

代码示例来源:origin: com.sun.mail/jakarta.mail

@Override
protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

代码示例来源:origin: com.sun.mail/android-mail

@Override
protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
protected void finalize() throws Throwable {
if (!finalizeCleanClose) {
  // when finalizing, close connections abruptly
  synchronized (connectionFailedLock) {
  connectionFailed = true;
  forceClose = true;
  }
  closeFoldersOnStoreFailure = true;	// make sure folders get closed
}
try {
  close();
} finally {
  super.finalize();
}
}

相关文章