Package javax.jmdns.impl
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 javax.jmdns.impl.NameRegister
NameRegister.BaseRegister, NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkName
(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.void
register
(InetAddress networkInterface, String name, NameRegister.NameType type) Registers a name that is defended by this group of mDNS.Methods inherited from class javax.jmdns.impl.NameRegister.BaseRegister
incrementNameWithDash, incrementNameWithParentesis
-
Constructor Details
-
UniqueNameAcrossInterface
public UniqueNameAcrossInterface()
-
-
Method Details
-
register
Description copied from interface:NameRegister
Registers 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:NameRegister
Checks a name that is defended by this group of mDNS.- Parameters:
networkInterface
- IP address to handlename
- name to checktype
- name type to check- Returns:
true
if the name is not in conflict,flase
otherwise.
-
incrementName
Description copied from interface:NameRegister
Increments 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
-