![JAR search and dependency download from the Maven repository](/logo.png)
com.github.edgar615.util.event.Message Maven / Gradle / Ivy
package com.github.edgar615.util.event;
import java.util.Map;
/**
* 单向消息,不需要接收方(或者是消息订阅方)回应.
*
* @author Edgar Date 2017/3/8
*/
public interface Message extends EventAction {
String TYPE = "message";
/**
* @return 请求参数
*/
Map content();
/**
* 创建一个单向消息
*
* @param resource 资源标识
* @param content 请求参数
* @return Message
*/
static Message create(String resource, Map content) {
return new MessageImpl(resource, content);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy