Class SuperstreamManager

java.lang.Object
ai.superstream.core.SuperstreamManager

public class SuperstreamManager extends Object
Main manager class for the Superstream library.
  • Method Details

    • isOptimizationInProgress

      public static boolean isOptimizationInProgress()
      Check if optimization is already in progress for the current thread.
      Returns:
      true if optimization is in progress, false otherwise
    • setOptimizationInProgress

      public static void setOptimizationInProgress(boolean inProgress)
      Set the optimization in progress flag for the current thread.
      Parameters:
      inProgress - true if optimization is in progress, false otherwise
    • getInstance

      public static SuperstreamManager getInstance()
      Get the singleton instance of the SuperstreamManager.
      Returns:
      The SuperstreamManager instance
    • convertPropertiesToMap

      public static Map<String,Object> convertPropertiesToMap(Properties properties)
    • optimizeProducer

      public boolean optimizeProducer(String bootstrapServers, String clientId, Properties properties)
      Optimize the producer properties for a given Kafka cluster.
      Parameters:
      bootstrapServers - The Kafka bootstrap servers
      clientId - The client ID
      properties - The producer properties to optimize
      Returns:
      True if the optimization was successful, false otherwise