Interface UdpMessageQueueService

    • Method Detail

      • setUdpBinding

        void setUdpBinding​(UdpBindingService udpBinding)
        Injects the UDP binding service.

        Without a UDP binding service the message queue cannot send and receive messages. Make sure the UDP binding is injected before the service is started.

        Parameters:
        udpBinding - the UDP binding service to inject.
      • sendMessage

        boolean sendMessage​(UdpMessage message)
        Queues an outgoing UDP message.
        Parameters:
        message - the message to be send.
        Returns:
        true if the message could be queued, otherwise false (queue overflow).
      • registerUdpMessageQueueObserver

        void registerUdpMessageQueueObserver​(UdpMessageQueueObserver observer)
        Registers an observer to receive incoming UDP messages.
        Parameters:
        observer - the observer to register.
      • unregisterUdpMessageQueueObserver

        void unregisterUdpMessageQueueObserver​(UdpMessageQueueObserver observer)
        Unregisters an observer to stop receiving incoming UDP messages.
        Parameters:
        observer - the observer to unregister.