Package com.hazelcast.config
Interface ConfigRecognizer
- All Known Implementing Classes:
com.hazelcast.internal.config.AbstractConfigRecognizer,ClientConfigRecognizer,ClientFailoverConfigRecognizer,MemberConfigRecognizer
public interface ConfigRecognizer
Interface for recognizing a declarative Hazelcast configuration
based on the rules defined in the actual implementation.
The main use case for this interface is recognizing whether a given
declarative configuration is a member or a client configuration.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisRecognized(ConfigStream configStream) Recognizes the configuration given in theconfigStreamargument.
-
Method Details
-
isRecognized
Recognizes the configuration given in theconfigStreamargument.- Parameters:
configStream- The stream with the declarative configuration- Returns:
trueif the configuration is recognized,falseotherwise- Throws:
Exception- If any error occurs during the recognition
-