public interface Configuration
Network administrators agree on and pass the configuration parameters as a service-specific protobuf message when adding that service instance to the network. After Exonum starts the service, it passes the configuration parameters to the newly created service instance.
Reconfiguration of a started service may be implemented with a supervisor service
and Configurable interface.
| Modifier and Type | Method and Description |
|---|---|
<MessageT extends com.google.protobuf.MessageLite> |
getAsMessage(Class<MessageT> parametersType)
Returns the configuration parameters as a Protocol Buffers message.
|
<MessageT extends com.google.protobuf.MessageLite> MessageT getAsMessage(Class<MessageT> parametersType)
parametersType - the type of a Protocol Buffers message in which the service configuration
parameters are recorded in transactions starting the service instanceIllegalArgumentException - if the actual type of the configuration parameters does not
match the given type. Such mismatch might mean either a configuration error, when
administrators pass the wrong parameters; or an error in the service itselfStandardSerializers.protobuf(Class)Copyright © 2019 Exonum. All rights reserved.