Listen to offline message events
来源:互联网 发布:淘宝系统确认收货时间 编辑:程序博客网 时间:2024/05/17 06:09
Listen to offline message events
This document explains how to hook up customer logic when a message is stored offline or bounced (i.e. not stored offline and the target entity was not available).
Create your own plugin where you will place your custom code.
Create a new implementation of the OfflineMessageListener interface.
Register the new interface implementation so that it will be alerted of new events. Use OfflineMessageStrategy#addListener(OfflineMessageListener) to register the new listener.
When your pluing is unloaded you will need to unregister your listener so that no references to the plugin are kept. Use OfflineMessageStrategy#removeListener(OfflineMessageListener) to unregister the listener.
There is only one instance of OfflineMessageStrategy in the system. Use XMPPServer.getInstance().getOfflineMessageStrategy() to get the unique instance and add or remove your listeners.
- Listen to offline message events
- listen to
- Listen to this lesson1
- listen to the song
- O2O(Online To Offline)
- 姚博文 postgresql listen/notify push message
- Introduction to Events
- Responding to Click Events
- Listen to English - Learn English
- Listen to this I-1
- listen to this 2-3
- How to download offline javadoc?
- unity3d network --no free events for message
- [DirectShow] 035 - Responding to Events
- Using Intents to Broadcast Events
- How to: Implement Interface Events
- adds events to the mouse
- Listen
- 如何让DEV PropertyGridControl根据自定义Attribute特性来自定义输入显示
- Android中的自定义按钮背景和shap形状资源的应用
- appium在真机上运行IOS实例要注意的几点:包括python和java运行log 和部分关键代码
- jQuery源码浅谈系列---工具方法$.merge与$.unique
- 关于“IOS开发”中的UIScrollView的相关问题!
- Listen to offline message events
- json-lib的使用
- 用GDB调试程序(四)
- io和nio的文件读取方式的不同
- android api分析22 Service
- window查看电脑配置 常用dos命令
- id3决策树Python版
- 用GDB调试程序(五)
- struts2源码解析二---struts2初始化