Package com.illumon.iris.db.v2.routing
Class DataRoutingService.MapPropertyProvider
java.lang.Object
com.illumon.iris.db.v2.routing.DataRoutingService.MapPropertyProvider
- All Implemented Interfaces:
DataRoutingService.ImmutablePropertyProvider,DataRoutingService.PropertyProvider
- Enclosing interface:
- DataRoutingService
public static class DataRoutingService.MapPropertyProvider
extends Object
implements DataRoutingService.ImmutablePropertyProvider
Implementation of PropertyProvider that wraps a map.
-
Constructor Summary
ConstructorsConstructorDescriptionMapPropertyProvider(Map<String, String> properties) Create a PropertyProvider from a map. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.PropertyProvider
getProperty, getProperty
-
Constructor Details
-
MapPropertyProvider
Create a PropertyProvider from a map. This creates an immutable copy of the map.- Parameters:
properties- the map to wrap
-
-
Method Details
-
getProperties
Description copied from interface:DataRoutingService.PropertyProviderReturn all properties as a map. This is useful for interactions outside the DB project.- Specified by:
getPropertiesin interfaceDataRoutingService.PropertyProvider- Returns:
- a map containing all keys and values for this provider
-
equals
-
hashCode
public int hashCode()
-