Interface EventSourceAccess

  • All Known Implementing Classes:
    WebService

    public interface EventSourceAccess
    Interface to access event source functionality provided by a Device.
    • Method Detail

      • sendNotification

        void sendNotification​(String action,
                              Object payload)
                       throws MarshallingException,
                              TransportException
        Sends a notification to all subscribers.
        Parameters:
        action - the action the notification complies with.
        payload - the message payload that is tried to be marshalled and delivered.
        Throws:
        TransportException - on any transport-related exception during processing. This will hinder the request from being sent.
        MarshallingException - on any exception that occurs during marshalling or unmarshalling of SOAP messages.
      • subscriptionEndToAll

        void subscriptionEndToAll​(WsEventingStatus status)
                           throws TransportException
        Sends a subscription end message to all subscribers and shut down connected subscriptions.
        Parameters:
        status - reason for ending the subscriptions.
        Throws:
        TransportException - on any transport-related exception during processing. This will hinder the request from being sent.