Package org.elasticsearch.cluster
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
-
Method Details
-
merge
Merges this custom metadata with other, returning either this orothercustom metadata. This method should not mutate eitherthisor theothercustom metadata.- Parameters:
other- custom meta data- Returns:
- the same instance or
othercustom metadata based on implementation if both the instances are considered equal, implementations should return this instance to avoid redundant cluster state changes.
-