-
public interface PollingStrategyProviderJava service loader service to create a polling strategy factory based on meta configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcreate(String type, Config metaConfig)Create an instance of the meta configurable using the provided meta configuration.Set<String>supported()Return a set of supported types.booleansupports(String type)Return true if this provider supports the type of meta-configurable object.
-
-
-
Method Detail
-
supports
boolean supports(String type)
Return true if this provider supports the type of meta-configurable object.- Parameters:
type- type that is supported (such asfileforConfigSourcemeta configurable)- Returns:
trueif this provider can create instances of the type
-
create
T create(String type, Config metaConfig)
Create an instance of the meta configurable using the provided meta configuration.- Parameters:
type- type of the meta configurablemetaConfig- meta configuration- Returns:
- meta configurable configured from the metaConfig
-
-