public interface Factory
| 限定符和类型 | 方法和说明 |
|---|---|
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
OptionRule |
optionRule()
Returns the rule for options.
|
String factoryIdentifier()
For consistency, an identifier should be declared as one lower case word (e.g. kafka). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7).
OptionRule optionRule()
1. Used to verify whether the parameters configured by the user conform to the rules of the options;
2. Used for Web-UI to prompt user to configure option value;
Copyright © 2024 The Apache Software Foundation. All rights reserved.