Package org.somda.sdc.dpws.device
Interface EventSourceAccess
-
- All Known Implementing Classes:
WebService
public interface EventSourceAccessInterface to access event source functionality provided by a Device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendNotification(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 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.
-
-