Interface MergableCustomMetadata<T extends Metadata.Custom>

Type Parameters:
T - type of custom meta data

public interface MergableCustomMetadata<T extends Metadata.Custom>
Interface to allow merging Metadata.Custom. When multiple Mergable Custom metadata of the same type are found (from underlying clusters), the Custom metadata can be merged using merge(Metadata.Custom).
  • Method Summary

    Modifier and Type
    Method
    Description
    merge​(T other)
    Merges this custom metadata with other, returning either this or other custom metadata.
  • Method Details

    • merge

      T merge(T other)
      Merges this custom metadata with other, returning either this or other custom metadata. This method should not mutate either this or the other custom metadata.
      Parameters:
      other - custom meta data
      Returns:
      the same instance or other custom metadata based on implementation if both the instances are considered equal, implementations should return this instance to avoid redundant cluster state changes.