org.fourthline.cling.protocol.sync
Class SendingEvent
java.lang.Object
org.fourthline.cling.protocol.SendingAsync
org.fourthline.cling.protocol.SendingSync<OutgoingEventRequestMessage,StreamResponseMessage>
org.fourthline.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()
throws RouterException
- Specified by:
executeSync
in class SendingSync<OutgoingEventRequestMessage,StreamResponseMessage>
- Throws:
RouterException
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.