M - websocket发送消息对象public abstract class AbstractNotifyInfoHandler<T extends NotifyInfo,M extends JsonWebSocketMessage> extends Object implements NotifyInfoHandler<T>
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractNotifyInfoHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract M |
createMessage(T notifyInfo)
产生推送消息
|
Class<T> |
getNotifyClass()
获取消息类型
|
void |
handle(List<com.hccake.ballcat.system.model.entity.SysUser> userList,
T notifyInfo)
处理消息
|
protected abstract void |
persistMessage(List<com.hccake.ballcat.system.model.entity.SysUser> userList,
T notifyInfo)
持久化通知
|
protected final Class<T extends NotifyInfo> clz
public void handle(List<com.hccake.ballcat.system.model.entity.SysUser> userList, T notifyInfo)
NotifyInfoHandlerhandle 在接口中 NotifyInfoHandler<T extends NotifyInfo>userList - 发送用户列表notifyInfo - 消息public Class<T> getNotifyClass()
NotifyInfoHandlergetNotifyClass 在接口中 NotifyInfoHandler<T extends NotifyInfo>protected abstract void persistMessage(List<com.hccake.ballcat.system.model.entity.SysUser> userList, T notifyInfo)
userList - 通知用户列表notifyInfo - 消息内容Copyright © 2023. All rights reserved.