| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| protected final ConcurrentMap | |
| protected static final String | |
| protected static final String | |
| protected final RegistryStore | |
| private final AbstractRegistry | |
| private static final String | |
| private static final String | |
| protected final Map | registryTags
Global tags which must be added to each instance created by this registry. |
| protected static final String | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | AbstractRegistry(C defaultConfig, RegistryEventConsumer<E> registryEventConsumer, Map<String, String> tags)
|
| public | |
| public | AbstractRegistry(C defaultConfig, List<RegistryEventConsumer<E>> registryEventConsumers, Map<String, String> tags)
|
| public | AbstractRegistry(C defaultConfig, List<RegistryEventConsumer<E>> registryEventConsumers, Map<String, String> tags, RegistryStore<E> registryStore)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfiguration(String
the configuration name configName, C the added configuration configuration)Implements io. Adds a configuration to the registry |
| protected E | |
| public Optional | find(String
the name name)Implements io. Find a named entry in the Registry |
| protected Map | Returns: Map containing all tagsTags of the instance. tags)Creates map with all tags (registry and instance). |
| public Optional | getConfiguration(String
the configuration name configName)Implements io. Get a configuration by name |
| public C | getDefaultConfig()
Implements io. Get the default configuration |
| public Registry. | getEventPublisher()
Implements io. Returns an EventPublisher which can be used to register event consumers. |
| public Map | |
| public Optional | remove(String
the name name)Implements io. Remove an entry from the Registry |
| public C | removeConfiguration(String configName)
Implements io. + * Removes a configuration from the registry + * + * @param configName the configuration name + * @return configuration mapped to the configName. |
| public Optional | replace(String
the existing name name, E a new entry newEntry)Implements io. Replace an existing entry in the Registry by a new one. |
| CONFIG_MUST_NOT_BE_NULL | back to summary |
|---|---|
| protected static final String CONFIG_MUST_NOT_BE_NULL | |
| configurations | back to summary |
|---|---|
| protected final ConcurrentMap<String, C> configurations | |
| CONSUMER_MUST_NOT_BE_NULL | back to summary |
|---|---|
| protected static final String CONSUMER_MUST_NOT_BE_NULL | |
| DEFAULT_CONFIG | back to summary |
|---|---|
| protected static final String DEFAULT_CONFIG | |
| entryMap | back to summary |
|---|---|
| protected final RegistryStore<E> entryMap | |
| eventProcessor | back to summary |
|---|---|
| private final AbstractRegistry<E, C>. | |
| NAME_MUST_NOT_BE_NULL | back to summary |
|---|---|
| private static final String NAME_MUST_NOT_BE_NULL | |
| REGISTRY_STORE_MUST_NOT_BE_NULL | back to summary |
|---|---|
| private static final String REGISTRY_STORE_MUST_NOT_BE_NULL | |
| registryTags | back to summary |
|---|---|
| protected final Map<String, String> registryTags Global tags which must be added to each instance created by this registry. | |
| SUPPLIER_MUST_NOT_BE_NULL | back to summary |
|---|---|
| protected static final String SUPPLIER_MUST_NOT_BE_NULL | |
| TAGS_MUST_NOT_BE_NULL | back to summary |
|---|---|
| protected static final String TAGS_MUST_NOT_BE_NULL | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, Map<String, String> registryTags) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, RegistryEventConsumer<E> registryEventConsumer) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, RegistryEventConsumer<E> registryEventConsumer, Map<String, String> tags) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, List<RegistryEventConsumer<E>> registryEventConsumers) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, List<RegistryEventConsumer<E>> registryEventConsumers, Map<String, String> tags) | |
| AbstractRegistry | back to summary |
|---|---|
| public AbstractRegistry(C defaultConfig, List<RegistryEventConsumer<E>> registryEventConsumers, Map<String, String> tags, RegistryStore<E> registryStore) | |
| addConfiguration | back to summary |
|---|---|
| public void addConfiguration(String configName, C configuration) Implements io. Doc from io. Adds a configuration to the registry | |
| computeIfAbsent | back to summary |
|---|---|
| protected E computeIfAbsent(String name, Supplier<E> supplier) | |
| find | back to summary |
|---|---|
| public Optional Implements io. Doc from io. Find a named entry in the Registry | |
| getAllTags | back to summary |
|---|---|
| protected Map Creates map with all tags (registry and instance). When tags (keys) of the two collide the tags passed with this method will override the tags of the registry. | |
| getConfiguration | back to summary |
|---|---|
| public Optional Implements io. Doc from io. Get a configuration by name | |
| getDefaultConfig | back to summary |
|---|---|
| public C getDefaultConfig() Implements io. Doc from io. Get the default configuration
| |
| getEventPublisher | back to summary |
|---|---|
| public Registry. Implements io. Doc from io. Returns an EventPublisher which can be used to register event consumers.
| |
| getTags | back to summary |
|---|---|
| public Map Implements io.
| |
| remove | back to summary |
|---|---|
| public Optional Implements io. Doc from io. Remove an entry from the Registry | |
| removeConfiguration | back to summary |
|---|---|
| public C removeConfiguration(String configName) Implements io. Doc from io. + * Removes a configuration from the registry + * + * @param configName the configuration name + * @return configuration mapped to the configName. +
| |
| replace | back to summary |
|---|---|
| public Optional Implements io. Doc from io. Replace an existing entry in the Registry by a new one. | |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Registry. | onEntryAdded(EventConsumer<EntryAddedEvent<E>> onSuccessEventConsumer)
Implements io.
|
| public Registry. | onEntryRemoved(EventConsumer<EntryRemovedEvent<E>> onErrorEventConsumer)
Implements io.
|
| public Registry. | onEntryReplaced(EventConsumer<EntryReplacedEvent<E>> onStateTransitionEventConsumer)
Implements io.
|
| RegistryEventProcessor | back to summary |
|---|---|
| private RegistryEventProcessor() | |
| RegistryEventProcessor | back to summary |
|---|---|
| private RegistryEventProcessor(List<RegistryEventConsumer<E>> registryEventConsumers) | |
| consumeEvent | back to summary |
|---|---|
| public void consumeEvent(RegistryEvent event) Implements io.
| |
| onEntryAdded | back to summary |
|---|---|
| public Registry. Implements io.
| |
| onEntryRemoved | back to summary |
|---|---|
| public Registry. Implements io.
| |
| onEntryReplaced | back to summary |
|---|---|
| public Registry. Implements io.
| |