Package org.aoju.bus.socket.process
Class GroupMessageProcessor<T>
java.lang.Object
org.aoju.bus.socket.process.GroupMessageProcessor<T>
- All Implemented Interfaces:
GroupIo,MessageProcessor<T>
public abstract class GroupMessageProcessor<T>
extends Object
implements MessageProcessor<T>, GroupIo
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidjoin(String group, AioSession session) 将AioSession加入群组groupfinal voidremove(String group, AioSession session) 将AioSession从群众group中移除final voidremove(AioSession session) AioSession从所有群组中退出voidwriteToGroup(String group, byte[] t) 群发消息Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aoju.bus.socket.process.MessageProcessor
process, stateEvent
-
Constructor Details
-
GroupMessageProcessor
public GroupMessageProcessor()
-
-
Method Details
-
join
将AioSession加入群组group -
remove
Description copied from interface:GroupIo将AioSession从群众group中移除 -
remove
Description copied from interface:GroupIoAioSession从所有群组中退出 -
writeToGroup
Description copied from interface:GroupIo群发消息- Specified by:
writeToGroupin interfaceGroupIo- Parameters:
group- 群组信息t- 发送内容
-