org.teleal.cling.protocol.async
Class SendingNotification
java.lang.Object
org.teleal.cling.protocol.SendingAsync
org.teleal.cling.protocol.async.SendingNotification
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- SendingNotificationAlive, SendingNotificationByebye
public abstract class SendingNotification
- extends SendingAsync
Sending notification messages for a registered local device.
Sends all required (dozens) of messages three times, waits between 0 and 150
milliseconds between each bulk sending procedure.
- Author:
- Christian Bauer
SendingNotification
public SendingNotification(UpnpService upnpService,
LocalDevice device)
getDevice
public LocalDevice getDevice()
execute
protected void execute()
- Specified by:
execute
in class SendingAsync
getBulkRepeat
protected int getBulkRepeat()
getBulkIntervalMilliseconds
protected int getBulkIntervalMilliseconds()
sendMessages
public void sendMessages(Location descriptorLocation)
createDeviceMessages
protected List<OutgoingNotificationRequest> createDeviceMessages(LocalDevice device,
Location descriptorLocation)
createServiceTypeMessages
protected List<OutgoingNotificationRequest> createServiceTypeMessages(LocalDevice device,
Location descriptorLocation)
getNotificationSubtype
protected abstract NotificationSubtype getNotificationSubtype()
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.