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 TypeMethodDescriptionboolean
isRecognized
(ConfigStream configStream) Recognizes the configuration given in theconfigStream
argument.
-
Method Details
-
isRecognized
Recognizes the configuration given in theconfigStream
argument.- Parameters:
configStream
- The stream with the declarative configuration- Returns:
true
if the configuration is recognized,false
otherwise- Throws:
Exception
- If any error occurs during the recognition
-