Package javax.jmdns.impl.tasks.state
Class Renewer
- java.lang.Object
-
- java.util.TimerTask
-
- javax.jmdns.impl.tasks.DNSTask
-
- javax.jmdns.impl.tasks.state.DNSStateTask
-
- javax.jmdns.impl.tasks.state.Renewer
-
- All Implemented Interfaces:
Runnable
public class Renewer extends DNSStateTask
The Renewer is there to send renewal announcement when the record expire for ours infos.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadvanceTask()protected DNSOutgoingbuildOutgoingForDNS(DNSOutgoing out)protected DNSOutgoingbuildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out)booleancancel()protected booleancheckRunCondition()protected DNSOutgoingcreateOugoing()StringgetName()Return this task name.StringgetTaskDescription()protected voidrecoverTask(Throwable e)voidstart(Timer timer)Start this task.StringtoString()-
Methods inherited from class javax.jmdns.impl.tasks.state.DNSStateTask
advanceObjectsState, associate, defaultTTL, getTaskState, getTTL, removeAssociation, run, setDefaultTTL, setTaskState
-
Methods inherited from class javax.jmdns.impl.tasks.DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns
-
Methods inherited from class java.util.TimerTask
scheduledExecutionTime
-
-
-
-
Constructor Detail
-
Renewer
public Renewer(JmDNSImpl jmDNSImpl)
-
-
Method Detail
-
getTaskDescription
public String getTaskDescription()
- Specified by:
getTaskDescriptionin classDNSStateTask
-
checkRunCondition
protected boolean checkRunCondition()
- Specified by:
checkRunConditionin classDNSStateTask
-
createOugoing
protected DNSOutgoing createOugoing()
- Specified by:
createOugoingin classDNSStateTask
-
buildOutgoingForDNS
protected DNSOutgoing buildOutgoingForDNS(DNSOutgoing out) throws IOException
- Specified by:
buildOutgoingForDNSin classDNSStateTask- Throws:
IOException
-
buildOutgoingForInfo
protected DNSOutgoing buildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out) throws IOException
- Specified by:
buildOutgoingForInfoin classDNSStateTask- Throws:
IOException
-
recoverTask
protected void recoverTask(Throwable e)
- Specified by:
recoverTaskin classDNSStateTask
-
advanceTask
protected void advanceTask()
- Specified by:
advanceTaskin classDNSStateTask
-
-