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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T merge​(T other)
      Merges this custom metadata with other, returning either this or other custom metadata.
    • Method Detail

      • 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.