java.lang.Object
org.cybergarage.util.ThreadCore
org.cybergarage.upnp.device.Advertiser
- All Implemented Interfaces:
Runnable
Thread for advertising UPnP device presence on the network.
This class extends ThreadCore to provide periodic device advertisement through SSDP NOTIFY messages. It manages the announcement cycle for device presence and implements NMPR (Network Media Profile Requirements) compliance for notification timing.
Key features:
- Periodic SSDP notification sending
- NMPR mode compliance
- Device announcement management
- Multi-threaded operation
- Network presence broadcasting
This class is used by UPnP devices to automatically announce their presence on the network at regular intervals, ensuring discovery by control points and maintaining network visibility.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class ThreadCore
getThreadObject, isRunnable, restart, setThreadObject, start, stopModifier and TypeMethodDescriptionGets the internal Thread object.booleanChecks if the current thread is the same as this ThreadCore's thread.voidrestart()Restarts the thread by stopping it first and then starting it again.voidsetThreadObject(Thread obj) Sets the internal Thread object.voidstart()Starts the thread if it's not already running.voidstop()Stops the thread safely using interruption.
Field Details
device
Device being advertised
Constructor Details
Advertiser
Method Details
setDevice
getDevice
run
public void run()/////////////////////////////////////////////- Specified by:
runin interfaceRunnable- Overrides:
runin classThreadCore