Interface EventSourceAccess

  • All Implemented Interfaces:

    
    public interface EventSourceAccess
    
                        

    Interface to access event source functionality provided by a Device.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void sendNotification(String action, Object payload) Sends a notification to all subscribers.
      abstract void subscriptionEndToAll(WsEventingStatus status) Sends a subscription end message to all subscribers and shut down connected subscriptions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sendNotification

         abstract void sendNotification(String action, Object payload)

        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.
      • subscriptionEndToAll

         abstract void subscriptionEndToAll(WsEventingStatus status)

        Sends a subscription end message to all subscribers and shut down connected subscriptions.

        Parameters:
        status - reason for ending the subscriptions.