package com.edianxun.test;

import nl.justobjects.pushlet.core.Dispatcher;
import nl.justobjects.pushlet.core.Event;
import nl.justobjects.pushlet.core.EventSource;

public class PushletEvent implements EventSource{

	private Event event = null;
	public void activate() {
		// TODO Auto-generated method stub
		
	}

	public void passivate() {
		// TODO Auto-generated method stub
		
	}

	public void stop() {
		// TODO Auto-generated method stub
		
	}
	
	public void pushletEvent(String msg) throws Exception{
		if (event == null) {
			event = Event.createDataEvent("/edianxun/warn");
		}
		event.setField("warn", msg);
			Dispatcher.getInstance().multicast(event);
		
		
	}

}
最近下载更多
lironggang  LV38 2023年4月25日
 LV1 2021年11月24日
ddqddqddq  LV14 2021年5月31日
cc文慧  LV1 2021年4月26日
长得丑活得久  LV3 2021年3月8日
912299793  LV21 2021年2月10日
刘大神  LV6 2020年8月5日
SAN0001  LV3 2020年5月16日
luqb890913  LV12 2019年7月26日
优客木子  LV3 2019年5月24日
最近浏览更多
lironggang  LV38 2023年4月25日
17608417105  LV9 2022年8月22日
好的好的  LV8 2022年7月13日
nibin576  LV6 2022年5月31日
hongxinmiao  LV7 2022年5月19日
 LV1 2021年11月24日
kwm2921944  LV10 2021年6月16日
ddqddqddq  LV14 2021年5月31日
长得丑活得久  LV3 2021年3月8日
912299793  LV21 2021年2月10日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友