java.lang.Object
org.cybergarage.util.ThreadCore
org.cybergarage.upnp.control.RenewSubscriber
All Implemented Interfaces:
Runnable

public class RenewSubscriberextends ThreadCore
Thread for automatically renewing UPnP event subscriptions. Runs periodically to refresh subscriptions before they expire.
  • Field Details

    • INTERVAL

      public static final long INTERVAL
      Default renewal interval in seconds (120 seconds = 2 minutes)
      See Also:
    • ctrlPoint

      private ControlPoint ctrlPoint
      /////////////////////////////////////////////
  • Constructor Details

    • RenewSubscriber

      public RenewSubscriber(ControlPoint ctrlp)
      Constructs a RenewSubscriber for the specified control point.
      Parameters:
      ctrlp - the control point whose subscriptions should be renewed
  • Method Details

    • setControlPoint

      public void setControlPoint(ControlPoint ctrlp)
      Sets the control point for this subscriber.
      Parameters:
      ctrlp - the control point to set
    • getControlPoint

      public ControlPoint getControlPoint()
      Gets the control point for this subscriber.
      Returns:
      the control point
    • run

      public void run()
      Main thread loop that periodically renews subscriptions. Sleeps for the configured interval, then calls the control point to renew all active subscriptions.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class ThreadCore