Package org.cometd.examples
Class ChatService
java.lang.Object
org.cometd.examples.ChatService
@Service("chat") public class ChatService extends Object
-
Constructor Summary
Constructors Constructor Description ChatService()
-
Method Summary
Modifier and Type Method Description protected void
configureChatStarStar(ConfigurableServerChannel channel)
protected void
configureMembers(ConfigurableServerChannel channel)
protected void
configurePrivateChat(ConfigurableServerChannel channel)
void
handleMembership(ServerSession client, ServerMessage message)
void
privateChat(ServerSession client, ServerMessage message)
-
Constructor Details
-
ChatService
public ChatService()
-
-
Method Details
-
configureChatStarStar
@Configure({"/chat/**","/members/**"}) protected void configureChatStarStar(ConfigurableServerChannel channel) -
configureMembers
-
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)
-