Interface DataPartitionStorageOptions.Builder

  • Method Details

    • maximumSize

      The maximum storage size of the data stored in the data partition.

      Newer data overwrites older data when the partition reaches the maximum size.

      Parameters:
      maximumSize - The maximum storage size of the data stored in the data partition.

      Newer data overwrites older data when the partition reaches the maximum size.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maximumSize

      The maximum storage size of the data stored in the data partition.

      Newer data overwrites older data when the partition reaches the maximum size.

      This is a convenience method that creates an instance of the StorageMaximumSize.Builder avoiding the need to create one manually via StorageMaximumSize.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to maximumSize(StorageMaximumSize).

      Parameters:
      maximumSize - a consumer that will call methods on StorageMaximumSize.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageLocation

      DataPartitionStorageOptions.Builder storageLocation(String storageLocation)

      The folder name for the data partition under the campaign storage folder.

      Parameters:
      storageLocation - The folder name for the data partition under the campaign storage folder.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minimumTimeToLive

      DataPartitionStorageOptions.Builder minimumTimeToLive(StorageMinimumTimeToLive minimumTimeToLive)

      The amount of time that data in this partition will be kept on disk.

      • After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed.

      • Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size.

      • Newer data will overwrite older data when the partition reaches the maximum size.

      Parameters:
      minimumTimeToLive - The amount of time that data in this partition will be kept on disk.

      • After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed.

      • Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size.

      • Newer data will overwrite older data when the partition reaches the maximum size.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minimumTimeToLive

      default DataPartitionStorageOptions.Builder minimumTimeToLive(Consumer<StorageMinimumTimeToLive.Builder> minimumTimeToLive)

      The amount of time that data in this partition will be kept on disk.

      • After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed.

      • Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size.

      • Newer data will overwrite older data when the partition reaches the maximum size.

      This is a convenience method that creates an instance of the StorageMinimumTimeToLive.Builder avoiding the need to create one manually via StorageMinimumTimeToLive.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to minimumTimeToLive(StorageMinimumTimeToLive).

      Parameters:
      minimumTimeToLive - a consumer that will call methods on StorageMinimumTimeToLive.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: