java.lang.Object
com.zeroc.Ice.NativePropertiesAdmin
- All Implemented Interfaces:
Object
,PropertiesAdmin
The default implementation of the "Properties" admin facet.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUpdateCallback
(Consumer<Map<String, String>> cb) Adds a new update callback.getPropertiesForPrefix
(String name, Current current) Gets all properties whose keys begin withprefix
.getProperty
(String name, Current current) Gets a property by key.void
Removes a previously registered update callback.void
setProperties
(Map<String, String> props, Current current) Updates the communicator's properties with the given property set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.zeroc.Ice.PropertiesAdmin
dispatch
-
Method Details
-
getProperty
Description copied from interface:PropertiesAdmin
Gets a property by key.- Specified by:
getProperty
in interfacePropertiesAdmin
- Parameters:
name
- The property key.current
- The Current object of the incoming request.- Returns:
- The property value. This value is empty if the property is not set.
-
getPropertiesForPrefix
Description copied from interface:PropertiesAdmin
Gets all properties whose keys begin withprefix
. Ifprefix
is the empty string then all properties are returned.- Specified by:
getPropertiesForPrefix
in interfacePropertiesAdmin
- Parameters:
name
- The prefix to search for. May be empty.current
- The Current object of the incoming request.- Returns:
- The matching property set.
-
setProperties
Description copied from interface:PropertiesAdmin
Updates the communicator's properties with the given property set. If an entry innewProperties
matches the name of an existing property, that property's value is replaced with the new value. If the new value is the empty string, the property is removed. Existing properties that are not modified or removed by the entries innewProperties
are not affected by this update.- Specified by:
setProperties
in interfacePropertiesAdmin
- Parameters:
props
- Properties to add, change, or remove.current
- The Current object of the incoming request.
-
addUpdateCallback
Adds a new update callback. The callback receives the updated properties each time the properties are updated.- Parameters:
cb
- The new callback.
-
removeUpdateCallback
Removes a previously registered update callback.- Parameters:
cb
- The callback to remove.
-