public abstract class SendingNotification extends SendingAsync
Sends all required (dozens) of messages three times, waits between 0 and 150 milliseconds between each bulk sending procedure.
Constructor and Description |
---|
SendingNotification(UpnpService upnpService,
LocalDevice device) |
Modifier and Type | Method and Description |
---|---|
protected List<OutgoingNotificationRequest> |
createDeviceMessages(LocalDevice device,
Location descriptorLocation) |
protected List<OutgoingNotificationRequest> |
createServiceTypeMessages(LocalDevice device,
Location descriptorLocation) |
protected void |
execute() |
protected int |
getBulkIntervalMilliseconds() |
protected int |
getBulkRepeat() |
LocalDevice |
getDevice() |
protected abstract NotificationSubtype |
getNotificationSubtype() |
void |
sendMessages(Location descriptorLocation) |
getUpnpService, run, toString
public SendingNotification(UpnpService upnpService, LocalDevice device)
public LocalDevice getDevice()
protected void execute() throws RouterException
execute
in class SendingAsync
RouterException
protected int getBulkRepeat()
protected int getBulkIntervalMilliseconds()
public void sendMessages(Location descriptorLocation) throws RouterException
RouterException
protected List<OutgoingNotificationRequest> createDeviceMessages(LocalDevice device, Location descriptorLocation)
protected List<OutgoingNotificationRequest> createServiceTypeMessages(LocalDevice device, Location descriptorLocation)
protected abstract NotificationSubtype getNotificationSubtype()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.