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.
Canceler
public Canceler(JmDNSImpl jmDNSImpl)
getName
public String getName()
- Description copied from class:
DNSTask
- Return this task name.
- Specified by:
getName
in class DNSTask
- Returns:
- task name
toString
public String toString()
- Overrides:
toString
in class DNSTask
start
public void start(Timer timer)
- Description copied from class:
DNSTask
- Start this task.
- Specified by:
start
in class DNSTask
- Parameters:
timer
- task timer.
cancel
public boolean cancel()
- Overrides:
cancel
in class TimerTask
getTaskDescription
public String getTaskDescription()
- Specified by:
getTaskDescription
in class DNSStateTask
checkRunCondition
protected boolean checkRunCondition()
- Specified by:
checkRunCondition
in class DNSStateTask
createOugoing
protected DNSOutgoing createOugoing()
- Specified by:
createOugoing
in class DNSStateTask
buildOutgoingForDNS
protected DNSOutgoing buildOutgoingForDNS(DNSOutgoing out)
throws IOException
- Specified by:
buildOutgoingForDNS
in class DNSStateTask
- Throws:
IOException
buildOutgoingForInfo
protected DNSOutgoing buildOutgoingForInfo(ServiceInfoImpl info,
DNSOutgoing out)
throws IOException
- Specified by:
buildOutgoingForInfo
in class DNSStateTask
- Throws:
IOException
recoverTask
protected void recoverTask(Throwable e)
- Specified by:
recoverTask
in class DNSStateTask
advanceTask
protected void advanceTask()
- Specified by:
advanceTask
in class DNSStateTask
Copyright © 2002-2011 JmDNS. All Rights Reserved.