Package org.somda.sdc.dpws.device
Interface EventSourceAccess
public interface EventSourceAccess
Interface to access event source functionality provided by a Device.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendNotification(String action, Object payload) Sends a notification to all subscribers.voidsubscriptionEndToAll(WsEventingStatus status) Sends a subscription end message to all subscribers and shut down connected subscriptions.
-
Method Details
-
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
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.
-