org.fourthline.cling.protocol.sync
Class SendingRenewal
java.lang.Object
org.fourthline.cling.protocol.SendingAsync
org.fourthline.cling.protocol.SendingSync<OutgoingRenewalRequestMessage,IncomingSubscribeResponseMessage>
org.fourthline.cling.protocol.sync.SendingRenewal
- All Implemented Interfaces:
- Runnable
public class SendingRenewal
- extends SendingSync<OutgoingRenewalRequestMessage,IncomingSubscribeResponseMessage>
Renewing a GENA event subscription with a remote host.
This protocol is executed periodically by the local registry, for any established GENA
subscription to a remote service. If renewal failed, the subscription will be removed
from the registry and the
RemoteGENASubscription.end(org.fourthline.cling.model.gena.CancelReason, org.fourthline.cling.model.message.UpnpResponse)
method will be called. The RENEWAL_FAILED
reason will be used, however,
the response might be null
if no response was received from the remote host.
- Author:
- Christian Bauer
subscription
protected final RemoteGENASubscription subscription
SendingRenewal
public SendingRenewal(UpnpService upnpService,
RemoteGENASubscription subscription)
executeSync
protected IncomingSubscribeResponseMessage executeSync()
- Specified by:
executeSync
in class SendingSync<OutgoingRenewalRequestMessage,IncomingSubscribeResponseMessage>
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.