Interface TableViewBuilder<T>

    • Method Detail

      • loadConf

        TableViewBuilder<T> loadConf​(java.util.Map<java.lang.String,​java.lang.Object> config)
        Load the configuration from provided config map.

        Example:

        
          Map<String, Object> config = new HashMap<>();
          config.put("topicName", "test-topic");
          config.put("autoUpdatePartitionsSeconds", "300");
        
          TableViewBuilder<byte[]> builder = ...;
          builder = builder.loadConf(config);
        
          TableView<byte[]> tableView = builder.create();
          
        Parameters:
        config - configuration to load
        Returns:
        the TableViewBuilder instance
      • createAsync

        java.util.concurrent.CompletableFuture<TableView<T>> createAsync()
        Finalize the creation of the TableView instance in asynchronous mode.

        This method will return a CompletableFuture that can be used to access the instance when it's ready.

        Returns:
        the TableView instance
      • autoUpdatePartitionsInterval

        TableViewBuilder<T> autoUpdatePartitionsInterval​(int interval,
                                                         java.util.concurrent.TimeUnit unit)
        Set the interval of updating partitions (default: 1 minute).
        Parameters:
        interval - the interval of updating partitions
        unit - the time unit of the interval
        Returns:
        the TableViewBuilder builder instance