Interface MemoryStrategy.Builder

  • Method Details

    • strategyId

      MemoryStrategy.Builder strategyId(String strategyId)

      The unique identifier of the memory strategy.

      Parameters:
      strategyId - The unique identifier of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the memory strategy.

      Parameters:
      name - The name of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      MemoryStrategy.Builder description(String description)

      The description of the memory strategy.

      Parameters:
      description - The description of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      MemoryStrategy.Builder configuration(StrategyConfiguration configuration)

      The configuration of the memory strategy.

      Parameters:
      configuration - The configuration of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      default MemoryStrategy.Builder configuration(Consumer<StrategyConfiguration.Builder> configuration)

      The configuration of the memory strategy.

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

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

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

      The type of the memory strategy.

      Parameters:
      type - The type of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the memory strategy.

      Parameters:
      type - The type of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • namespaces

      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter. The namespaces associated with the memory strategy.

      Parameters:
      namespaces - This is a legacy parameter. The namespaces associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      @Deprecated MemoryStrategy.Builder namespaces(String... namespaces)
      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter. The namespaces associated with the memory strategy.

      Parameters:
      namespaces - This is a legacy parameter. The namespaces associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      MemoryStrategy.Builder namespaceTemplates(Collection<String> namespaceTemplates)

      The namespaceTemplates associated with the memory strategy.

      Parameters:
      namespaceTemplates - The namespaceTemplates associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      MemoryStrategy.Builder namespaceTemplates(String... namespaceTemplates)

      The namespaceTemplates associated with the memory strategy.

      Parameters:
      namespaceTemplates - The namespaceTemplates associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      MemoryStrategy.Builder createdAt(Instant createdAt)

      The timestamp when the memory strategy was created.

      Parameters:
      createdAt - The timestamp when the memory strategy was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      MemoryStrategy.Builder updatedAt(Instant updatedAt)

      The timestamp when the memory strategy was last updated.

      Parameters:
      updatedAt - The timestamp when the memory strategy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the memory strategy.

      Parameters:
      status - The current status of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the memory strategy.

      Parameters:
      status - The current status of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • memoryRecordSchema

      MemoryStrategy.Builder memoryRecordSchema(MemoryRecordSchema memoryRecordSchema)

      Schema for metadata fields on records generated by this strategy.

      Parameters:
      memoryRecordSchema - Schema for metadata fields on records generated by this strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      default MemoryStrategy.Builder memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema)

      Schema for metadata fields on records generated by this strategy.

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

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

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