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
The Renewer is there to send renewal announcement when the record expire for ours infos.
-
Field Summary
Fields inherited from class javax.jmdns.impl.tasks.state.DNSStateTask
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected DNSOutgoing
protected DNSOutgoing
buildOutgoingForInfo
(ServiceInfoImpl info, DNSOutgoing out) boolean
cancel()
protected boolean
protected DNSOutgoing
getName()
Return this task name.protected void
void
Start this task.toString()
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 Details
-
Renewer
-
-
Method Details
-
getName
Description copied from class:DNSTask
Return this task name. -
toString
-
start
Description copied from class:DNSTask
Start this task. -
cancel
public boolean cancel() -
getTaskDescription
- Specified by:
getTaskDescription
in classDNSStateTask
-
checkRunCondition
protected boolean checkRunCondition()- Specified by:
checkRunCondition
in classDNSStateTask
-
createOugoing
- Specified by:
createOugoing
in classDNSStateTask
-
buildOutgoingForDNS
- Specified by:
buildOutgoingForDNS
in classDNSStateTask
- Throws:
IOException
-
buildOutgoingForInfo
protected DNSOutgoing buildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out) throws IOException - Specified by:
buildOutgoingForInfo
in classDNSStateTask
- Throws:
IOException
-
recoverTask
- Specified by:
recoverTask
in classDNSStateTask
-
advanceTask
protected void advanceTask()- Specified by:
advanceTask
in classDNSStateTask
-