Package javax.jmdns.impl.tasks.state
Class Canceler
- java.lang.Object
-
- java.util.TimerTask
-
- javax.jmdns.impl.tasks.DNSTask
-
- javax.jmdns.impl.tasks.state.DNSStateTask
-
- javax.jmdns.impl.tasks.state.Canceler
-
- All Implemented Interfaces:
Runnable
public class Canceler extends DNSStateTask
The Canceler sends two announces with TTL=0 for the specified services.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
advanceTask()
protected DNSOutgoing
buildOutgoingForDNS(DNSOutgoing out)
protected DNSOutgoing
buildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out)
boolean
cancel()
protected boolean
checkRunCondition()
protected DNSOutgoing
createOugoing()
String
getName()
Return this task name.String
getTaskDescription()
protected void
recoverTask(Throwable e)
void
start(Timer timer)
Start this task.String
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 Detail
-
Canceler
public Canceler(JmDNSImpl jmDNSImpl)
-
-
Method Detail
-
getTaskDescription
public String getTaskDescription()
- Specified by:
getTaskDescription
in classDNSStateTask
-
checkRunCondition
protected boolean checkRunCondition()
- Specified by:
checkRunCondition
in classDNSStateTask
-
createOugoing
protected DNSOutgoing createOugoing()
- Specified by:
createOugoing
in classDNSStateTask
-
buildOutgoingForDNS
protected DNSOutgoing buildOutgoingForDNS(DNSOutgoing out) throws IOException
- 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
protected void recoverTask(Throwable e)
- Specified by:
recoverTask
in classDNSStateTask
-
advanceTask
protected void advanceTask()
- Specified by:
advanceTask
in classDNSStateTask
-
-