Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器管理 » MobiLink 服务器 API » 使用 Java 语言编写同步脚本 » 用于 Java 的 MobiLink 服务器 API 参考 » ServerContext 接口

 

removeShutdownListener 方法

语法
public void removeShutdownListener( ShutdownListener sl )
注释

从将在服务器上下文被取消前接收通知的监听器列表中删除指定的 ShutdownListener。

参数
  • sl   服务器关闭时不再通知的 ShutdownListener。

示例

在服务器上下文被取消前,以下代码将 ShutdownListener 从接收通知的 监听器列表中删除。

// ServerContext serverContext;
// ShutdownListener myShutdownListener
serverContext.removeShutdownListener(myShutdownListener);