Package org.atmosphere.room.protocol
Interface RoomProtocolMessage
- All Known Implementing Classes:
RoomProtocolMessage.Broadcast,RoomProtocolMessage.Direct,RoomProtocolMessage.Join,RoomProtocolMessage.Leave,RoomProtocolMessage.Typing
public sealed interface RoomProtocolMessage
permits RoomProtocolMessage.Join, RoomProtocolMessage.Leave, RoomProtocolMessage.Broadcast, RoomProtocolMessage.Direct, RoomProtocolMessage.Typing
Protocol messages exchanged between clients and the server for
room operations. This sealed hierarchy enables exhaustive pattern
matching in Java 21.
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordBroadcast a message to all room members.static final recordSend a direct message to a specific member by member ID.static final recordJoin a room with optional member metadata.static final recordLeave a room.static final recordSignal that a member has started or stopped typing. -
Method Summary
-
Method Details
-
room
String room()The target room name.
-