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 mergingMetaData.Custom. When multiple Mergable Custom metadata of the same type are found (from underlying clusters), the Custom metadata can be merged usingmerge(MetaData.Custom).
-
-
Method Detail
-
merge
T merge(T other)
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.
-
-