Class RawStateStore

    • Constructor Detail

      • RawStateStore

        public RawStateStore()
    • Method Detail

      • of

        public static RawStateStore of​(CogniteClient client,
                                       String dbName,
                                       String tableName)
        Initialize a state store backed by a CDF Raw table.
        Parameters:
        client - Cognite client to use for the accessing the Raw table
        dbName - The name of the Raw data base hosting the backing table
        tableName - The name of the Raw table
        Returns:
        the state store.
      • withMaxCommitInterval

        public RawStateStore withMaxCommitInterval​(Duration interval)
        Sets the max commit interval. When you activate the commit background thread via AbstractStateStore.start(), the state will be committed to persistent storage at least every commit interval. The default max commit interval is 20 seconds.
        Parameters:
        interval - The target max upload interval.
        Returns:
        The RawStateStore with the upload interval configured.