org.noear.water.dso.MessageHandler Maven / Gradle / Ivy
package org.noear.water.dso;
import org.noear.water.model.MessageM;
/**
* 消息处理接口
*
*
* @WaterMessage("test.hello")
* public class TestMessage implements MessageHandler {
* @Override
* public boolean handle(MessageM msg) throws Throwable {
* return true;
* }
* }
*
*
* @author noear
* @since 2.0
* */
public interface MessageHandler {
boolean handle(MessageM msg) throws Throwable;
}