Package org.cometd.examples
Class ChatService
- java.lang.Object
-
- org.cometd.examples.ChatService
-
@Service("chat") public class ChatService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureChatStarStar(ConfigurableServerChannel channel)protected voidconfigureMembers(ConfigurableServerChannel channel)protected voidconfigurePrivateChat(ConfigurableServerChannel channel)voidhandleMembership(ServerSession client, ServerMessage message)voidprivateChat(ServerSession client, ServerMessage message)
-
-
-
Method Detail
-
configureChatStarStar
@Configure({"/chat/**","/members/**"}) protected void configureChatStarStar(ConfigurableServerChannel channel)
-
configureMembers
@Configure("/service/members") protected void configureMembers(ConfigurableServerChannel channel)
-
handleMembership
@Listener("/service/members") public void handleMembership(ServerSession client, ServerMessage message)
-
configurePrivateChat
@Configure("/service/privatechat") protected void configurePrivateChat(ConfigurableServerChannel channel)
-
privateChat
@Listener("/service/privatechat") public void privateChat(ServerSession client, ServerMessage message)
-
-