Class BayeuxServer.Extension.Adapter

    • Constructor Detail

      • Adapter

        public Adapter()
    • Method Detail

      • rcv

        public boolean rcv​(ServerSession from,
                           ServerMessage.Mutable message)
        Description copied from interface: BayeuxServer.Extension

        Callback method invoked every time a normal message is incoming.

        Specified by:
        rcv in interface BayeuxServer.Extension
        Parameters:
        from - the session that sent the message
        message - the incoming message
        Returns:
        true if message processing should continue, false if it should stop
      • rcvMeta

        public boolean rcvMeta​(ServerSession from,
                               ServerMessage.Mutable message)
        Description copied from interface: BayeuxServer.Extension

        Callback method invoked every time a meta message is incoming.

        Specified by:
        rcvMeta in interface BayeuxServer.Extension
        Parameters:
        from - the session that sent the message
        message - the incoming meta message
        Returns:
        true if message processing should continue, false if it should stop
      • send

        public boolean send​(ServerSession from,
                            ServerSession to,
                            ServerMessage.Mutable message)
        Description copied from interface: BayeuxServer.Extension

        Callback method invoked every time a normal message is outgoing.

        Specified by:
        send in interface BayeuxServer.Extension
        Parameters:
        from - the session that sent the message or null
        to - the session the message is sent to, or null for a publish.
        message - the outgoing message
        Returns:
        true if message processing should continue, false if it should stop
      • sendMeta

        public boolean sendMeta​(ServerSession to,
                                ServerMessage.Mutable message)
        Description copied from interface: BayeuxServer.Extension

        Callback method invoked every time a meta message is outgoing.

        Specified by:
        sendMeta in interface BayeuxServer.Extension
        Parameters:
        to - the session the message is sent to, or null for a publish.
        message - the outgoing meta message
        Returns:
        true if message processing should continue, false if it should stop