1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.protocol.async;
17
18 import org.fourthline.cling.UpnpService;
19 import org.fourthline.cling.model.meta.LocalDevice;
20 import org.fourthline.cling.model.types.NotificationSubtype;
21 import org.fourthline.cling.transport.RouterException;
22
23 import java.util.logging.Logger;
24
25
26
27
28
29
30 public class SendingNotificationAlive extends SendingNotification {
31
32 final private static Logger log = Logger.getLogger(SendingNotification.class.getName());
33
34 public SendingNotificationAlive(UpnpService upnpService, LocalDevice device) {
35 super(upnpService, device);
36 }
37
38 @Override
39 protected void execute() throws RouterException {
40 log.fine("Sending alive messages ("+getBulkRepeat()+" times) for: " + getDevice());
41 super.execute();
42 }
43
44 protected NotificationSubtype getNotificationSubtype() {
45 return NotificationSubtype.ALIVE;
46 }
47
48 }