Class NameRegister.UniqueNameAcrossInterface
java.lang.Object
javax.jmdns.impl.NameRegister.BaseRegister
javax.jmdns.impl.NameRegister.UniqueNameAcrossInterface
- All Implemented Interfaces:
NameRegister
- Enclosing interface:
NameRegister
-
Nested Class Summary
Nested classes/interfaces inherited from interface NameRegister
NameRegister.BaseRegister, NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckName(InetAddress networkInterface, String name, NameRegister.NameType type) Checks a name that is defended by this group of mDNS.incrementName(InetAddress networkInterface, String name, NameRegister.NameType type) Increments a name that is defended by this group of mDNS after it has been found in conflict.voidregister(InetAddress networkInterface, String name, NameRegister.NameType type) Registers a name that is defended by this group of mDNS.Methods inherited from class NameRegister.BaseRegister
incrementNameWithDash, incrementNameWithParentesis
-
Constructor Details
-
UniqueNameAcrossInterface
public UniqueNameAcrossInterface()
-
-
Method Details
-
register
Description copied from interface:NameRegisterRegisters a name that is defended by this group of mDNS.- Parameters:
networkInterface- IP address to handlename- name to registertype- name type to register
-
checkName
Description copied from interface:NameRegisterChecks a name that is defended by this group of mDNS.- Parameters:
networkInterface- IP address to handlename- name to checktype- name type to check- Returns:
trueif the name is not in conflict,flaseotherwise.
-
incrementName
Description copied from interface:NameRegisterIncrements a name that is defended by this group of mDNS after it has been found in conflict.- Parameters:
networkInterface- IP address to handlename- name to incrementtype- name type to increments- Returns:
- new name
-