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 Type
    Method
    Description
    boolean
    isRecognized(ConfigStream configStream)
    Recognizes the configuration given in the configStream argument.
  • Method Details

    • isRecognized

      boolean isRecognized(ConfigStream configStream) throws Exception
      Recognizes the configuration given in the configStream 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