Class ChatService

java.lang.Object
org.cometd.examples.ChatService

@Service("chat") public class ChatService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configureChatStarStar​(org.cometd.bayeux.server.ConfigurableServerChannel channel)
     
    protected void
    configureMembers​(org.cometd.bayeux.server.ConfigurableServerChannel channel)
     
    protected void
    configurePrivateChat​(org.cometd.bayeux.server.ConfigurableServerChannel channel)
     
    void
    handleMembership​(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)
     
    void
    privateChat​(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChatService

      public ChatService()
  • Method Details

    • configureChatStarStar

      @Configure({"/chat/**","/members/**"}) protected void configureChatStarStar(org.cometd.bayeux.server.ConfigurableServerChannel channel)
    • configureMembers

      @Configure("/service/members") protected void configureMembers(org.cometd.bayeux.server.ConfigurableServerChannel channel)
    • handleMembership

      @Listener("/service/members") public void handleMembership(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)
    • configurePrivateChat

      @Configure("/service/privatechat") protected void configurePrivateChat(org.cometd.bayeux.server.ConfigurableServerChannel channel)
    • privateChat

      @Listener("/service/privatechat") public void privateChat(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)