Interface BayeuxServer.Extension

    • Method Detail

      • rcv

        boolean rcv​(ServerSession from,
                    ServerMessage.Mutable message)

        Callback method invoked every time a normal message is incoming.

        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

        boolean rcvMeta​(ServerSession from,
                        ServerMessage.Mutable message)

        Callback method invoked every time a meta message is incoming.

        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

        boolean send​(ServerSession from,
                     ServerSession to,
                     ServerMessage.Mutable message)

        Callback method invoked every time a normal message is outgoing.

        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

        boolean sendMeta​(ServerSession to,
                         ServerMessage.Mutable message)

        Callback method invoked every time a meta message is outgoing.

        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