You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
591 B
20 lines
591 B
package com.fr.plugin.decision; |
|
|
|
import com.fr.decision.fun.impl.AbstractMessageEventProvider; |
|
import com.fr.decision.system.bean.message.Message; |
|
import com.fr.plugin.transform.FunctionRecorder; |
|
|
|
/** |
|
* @author Zed |
|
* @version 10.0 |
|
* Created by Zed on 2019/11/13 |
|
*/ |
|
@FunctionRecorder |
|
public class CustomMessageSender extends AbstractMessageEventProvider { |
|
|
|
@Override |
|
public void handleMessage(Message message) { |
|
System.out.println("平台新增了一个消息: " + message.getMessage()); |
|
System.out.println("该消息推送给: " + message.getUsername()); |
|
} |
|
}
|
|
|