Interface ContextChange.Builder

  • Method Details

    • changeType

      ContextChange.Builder changeType(String changeType)

      The type of change. The possible values are the following:

      • ADDED: The context entry was added to the context store.

      • REMOVED: The context entry was removed from the context store.

      Parameters:
      changeType - The type of change. The possible values are the following:

      • ADDED: The context entry was added to the context store.

      • REMOVED: The context entry was removed from the context store.

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

      ContextChange.Builder changeType(ContextChangeType changeType)

      The type of change. The possible values are the following:

      • ADDED: The context entry was added to the context store.

      • REMOVED: The context entry was removed from the context store.

      Parameters:
      changeType - The type of change. The possible values are the following:

      • ADDED: The context entry was added to the context store.

      • REMOVED: The context entry was removed from the context store.

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

      The context entry that was added or removed.

      Parameters:
      context - The context entry that was added or removed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      The context entry that was added or removed.

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

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

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