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 orother
custom metadata. This method should not mutate eitherthis
or theother
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.
-
-