org.teleal.cling.protocol.sync
Class SendingEvent
java.lang.Object
org.teleal.cling.protocol.SendingAsync
org.teleal.cling.protocol.SendingSync<OutgoingEventRequestMessage,StreamResponseMessage>
org.teleal.cling.protocol.sync.SendingEvent
- All Implemented Interfaces:
- Runnable
public class SendingEvent
- extends SendingSync<OutgoingEventRequestMessage,StreamResponseMessage>
Sending GENA event messages to remote subscribers.
Any LocalGENASubscription
instantiates and executes this protocol
when the state of a local service changes. However, a remote subscriber might require event
notification messages on more than one callback URL, so this protocol potentially sends
many messages. What is returned is always the last response, that is, the response for the
message sent to the last callback URL in the list of the subscriber.
- Author:
- Christian Bauer
subscriptionId
protected final String subscriptionId
requestMessages
protected final OutgoingEventRequestMessage[] requestMessages
currentSequence
protected final UnsignedIntegerFourBytes currentSequence
SendingEvent
public SendingEvent(UpnpService upnpService,
LocalGENASubscription subscription)
executeSync
protected StreamResponseMessage executeSync()
- Specified by:
executeSync
in class SendingSync<OutgoingEventRequestMessage,StreamResponseMessage>
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.