T
- type of configuration this handler handles.public class ConfigurationHandler<T> extends Object
Constructor and Description |
---|
ConfigurationHandler(ExecutorService executorService)
Initializes
ConfigurationHandler with a custom ExecutorService . |
Modifier and Type | Method and Description |
---|---|
Future<T> |
doConfigurationUpdate(ConfigurationRequest<T> configurationRequest)
Invokes a configuration request and updates listeners asynchronously.
|
void |
registerListener(ConfigurationListener<T> listener)
Registers a new listener.
|
public ConfigurationHandler(ExecutorService executorService)
ConfigurationHandler
with a custom ExecutorService
.executorService
- ExecutorService
that this configuration handler should use.public void registerListener(ConfigurationListener<T> listener)
listener
- may not be null.public Future<T> doConfigurationUpdate(ConfigurationRequest<T> configurationRequest)
configurationRequest
- may not be null.Copyright © 2024 Guardtime. All rights reserved.