本文整理了Java中com.cloudhopper.commons.util.windowing.Window.destroy()
方法的一些代码示例,展示了Window.destroy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.destroy()
方法的具体详情如下:
包路径:com.cloudhopper.commons.util.windowing.Window
类名称:Window
方法名:destroy
[英]Destroy this window by freeing all resources associated with it. All pending offers are cancelled, followed by all outstanding futures, then all listeners are removed, and monitoring is cancelled.
[中]通过释放与此窗口相关的所有资源来销毁此窗口。所有未完成的报价都会被取消,接下来是所有未完成的期货,然后所有侦听器都会被删除,监控也会被取消。
代码示例来源:origin: com.cloudhopper/ch-smpp
@Override
public void destroy() {
close();
this.sendWindow.destroy();
if (this.counters != null) {
this.counters.reset();
}
// make sure to lose the reference to to the session handler - many
// users of this class will probably pass themselves as the reference
// and this may help to prevent a circular reference
this.sessionHandler = null;
}
代码示例来源:origin: org.restcomm.smpp/ch-smpp
@Override
public void destroy() {
close();
this.sendWindow.destroy();
if (this.counters != null) {
this.counters.reset();
}
// make sure to lose the reference to to the session handler - many
// users of this class will probably pass themselves as the reference
// and this may help to prevent a circular reference
this.sessionHandler = null;
}
代码示例来源:origin: twitter-archive/cloudhopper-smpp
@Override
public void destroy() {
close();
this.sendWindow.destroy();
if (this.counters != null) {
this.counters.reset();
}
// make sure to lose the reference to to the session handler - many
// users of this class will probably pass themselves as the reference
// and this may help to prevent a circular reference
this.sessionHandler = null;
}
代码示例来源:origin: com.fizzed/ch-smpp
@Override
public void destroy() {
close();
this.sendWindow.destroy();
if (this.counters != null) {
this.counters.reset();
}
// make sure to lose the reference to to the session handler - many
// users of this class will probably pass themselves as the reference
// and this may help to prevent a circular reference
this.sessionHandler = null;
}
内容来源于网络,如有侵权,请联系作者删除!