Class DataFilterMessageListener

    • Constructor Detail

      • DataFilterMessageListener

        public DataFilterMessageListener​(DataFilter... filters)
      • DataFilterMessageListener

        public DataFilterMessageListener​(BayeuxServer bayeux,
                                         DataFilter... filters)
    • Method Detail

      • onMessage

        public boolean onMessage​(ServerSession from,
                                 ServerChannel channel,
                                 ServerMessage.Mutable message)
        Description copied from interface: ServerChannel.MessageListener

        Callback invoked when a message is being published.

        Implementers can decide to return false to signal that the message should not be published.

        Specified by:
        onMessage in interface ServerChannel.MessageListener
        from - the session that publishes the message
        channel - the channel the message is published to
        message - the message to be published
        whether the message should be published or not