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, toStringpublic SendingNotification(UpnpService upnpService, LocalDevice device)
public LocalDevice getDevice()
protected void execute()
throws RouterException
execute in class SendingAsyncRouterExceptionprotected int getBulkRepeat()
protected int getBulkIntervalMilliseconds()
public void sendMessages(Location descriptorLocation) throws RouterException
RouterExceptionprotected 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.