本文整理汇总了Java中org.jivesoftware.openfire.cluster.ClusterManager.removeListener方法的典型用法代码示例。如果您正苦于以下问题:Java ClusterManager.removeListener方法的具体用法?Java ClusterManager.removeListener怎么用?Java ClusterManager.removeListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jivesoftware.openfire.cluster.ClusterManager
的用法示例。
在下文中一共展示了ClusterManager.removeListener方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stop
import org.jivesoftware.openfire.cluster.ClusterManager; //导入方法依赖的package包/类
/**
* Called when manager is stopped, to clean things up.
*/
@Override
public void stop() {
super.stop();
ClusterManager.removeListener(this);
UserEventDispatcher.removeListener(this);
// Remove the statistics.
StatisticsManager.getInstance().removeStatistic(roomsStatKey);
StatisticsManager.getInstance().removeStatistic(occupantsStatKey);
StatisticsManager.getInstance().removeStatistic(usersStatKey);
StatisticsManager.getInstance().removeStatistic(incomingStatKey);
StatisticsManager.getInstance().removeStatistic(outgoingStatKey);
for (MultiUserChatService service : mucServices.values()) {
unregisterMultiUserChatService(service.getServiceName());
}
}
示例2: stop
import org.jivesoftware.openfire.cluster.ClusterManager; //导入方法依赖的package包/类
/**
* Called when manager is stopped, to clean things up.
*/
@Override
public void stop() {
super.stop();
ClusterManager.removeListener(this);
UserEventDispatcher.removeListener(this);
// Remove the statistics.
StatisticsManager.getInstance().removeStatistic(roomsStatKey);
StatisticsManager.getInstance().removeStatistic(occupantsStatKey);
StatisticsManager.getInstance().removeStatistic(usersStatKey);
StatisticsManager.getInstance().removeStatistic(incomingStatKey);
StatisticsManager.getInstance().removeStatistic(outgoingStatKey);
for (MultiUserChatService service : mucServices.values()) {
unregisterMultiUserChatService(service.getServiceName());
}
}
示例3: destroyPlugin
import org.jivesoftware.openfire.cluster.ClusterManager; //导入方法依赖的package包/类
public void destroyPlugin() {
workgroupManagerStop();
// Stop listen to cluster events
ClusterManager.removeListener(this);
// Dispose pending tasks
TaskEngine.getInstance().dispose();
}
示例4: shutdown
import org.jivesoftware.openfire.cluster.ClusterManager; //导入方法依赖的package包/类
/**
* Shuts down the transport session router.
*/
public void shutdown() {
ClusterManager.removeListener(this);
}