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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRecognized(ConfigStream configStream)
Recognizes the configuration given in theconfigStream
argument.
-
-
-
Method Detail
-
isRecognized
boolean isRecognized(ConfigStream configStream) throws java.lang.Exception
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:
java.lang.Exception
- If any error occurs during the recognition
-
-