io.easyspring.service.message.MessageSender Maven / Gradle / Ivy
The newest version!
package io.easyspring.service.message;
import io.easyspring.service.message.support.EasyMessage;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* 消息的发送器
*
* @author summer
* DateTime 2019-03-13 12:56
* @version V1.0.0-RELEASE
*/
@Validated
public interface MessageSender {
/**
* 消息发送方法
*
* @param message 消息对象
* Author summer
* DateTime 2019-03-13 13:27
* Version V1.0.0-RELEASE
*/
void send(@NotNull(message = "消息对象不能为空") @Valid T message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy