Package javax.jmdns.impl
Class NameRegister.UniqueNamePerInterface
java.lang.Object
javax.jmdns.impl.NameRegister.BaseRegister
javax.jmdns.impl.NameRegister.UniqueNamePerInterface
- 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap
<InetAddress, String> private final ConcurrentMap
<InetAddress, Set<String>> -
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
-
Field Details
-
_hostNames
-
_serviceNames
-
-
Constructor Details
-
UniqueNamePerInterface
public UniqueNamePerInterface()
-
-
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
-