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 TypeMethodDescriptionvoidaddUpdateCallback(Consumer<Map<String, String>> cb) Registers an update callback that will be invoked when a property update occurs.getPropertiesForPrefix(String name, Current current) Gets all properties whose keys begin withprefix.getProperty(String name, Current current) Gets a property by key.voidRemoves a previously registered update callback.voidsetProperties(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, waitMethods inherited from interface com.zeroc.Ice.PropertiesAdmin
dispatch
-
Method Details
-
getProperty
Description copied from interface:PropertiesAdminGets a property by key.- Specified by:
getPropertyin 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:PropertiesAdminGets all properties whose keys begin withprefix. Ifprefixis the empty string then all properties are returned.- Specified by:
getPropertiesForPrefixin 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:PropertiesAdminUpdates the communicator's properties with the given property set. If an entry innewPropertiesmatches 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 innewPropertiesare not affected by this update.- Specified by:
setPropertiesin interfacePropertiesAdmin- Parameters:
props- Properties to add, change, or remove.current- the Current object of the incoming request
-
addUpdateCallback
Registers an update callback that will be invoked when a property update occurs.- Parameters:
cb- the callback
-
removeUpdateCallback
Removes a previously registered update callback.- Parameters:
cb- the callback to remove
-