
package org.tio.sitexxx.service.vo.topic;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;
import java.util.UUID;

/**
 * @author tanyaowu 2016年11月8日 下午4:02:58
 */
@Data
public class TopicVo implements Serializable{
	private static final long	serialVersionUID	= -3043791690152475450L;
	public static final String	CLIENTID			= UUID.randomUUID().toString();
	private Short				type				= null;
	private Serializable		value;
	private Map<String, Object>	params;
	private String				clientId			= CLIENTID;
	private boolean				forceRun			= false;

	public interface Type {
		/**
		 * 清空Conf和ConfDev
		 */
		short CLEAR_CONF = 3;

		/**
		 * 移除user缓存,params为uid
		 */
		short CLEAR_USER = 4;

		/**
		 * 清空所有用户
		 */
		short CLEAR_ALL_USER = 5;

		/**
		 * 清空配置
		 */
		short CLEAR_ALL_CONF = 6;

		/**
		 * 设置系统参数
		 */
		short SET_SYSTEM_PARAM = 12;
	}
}
