Skip to content

Commit 65b0493

Browse files
authored
Deprecate DiscoveryPlugin#getDiscoveryTypes (#38410)
Marks `DiscoveryPlugin#getDiscoveryTypes` as deprecated since we intend to remove the ability for plugins to provide their own discovery type in a future version. Relates #38414
1 parent 766f7b5 commit 65b0493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/main/java/org/elasticsearch/plugins/DiscoveryPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ public interface DiscoveryPlugin {
6666
* @param clusterApplier Use to locally apply cluster state updates
6767
* @param clusterSettings Use to get cluster settings
6868
* @param hostsProvider Use to find configured hosts which should be pinged for initial discovery
69+
*
70+
* @deprecated Future versions will not support pluggable discovery implementations.
6971
*/
72+
@Deprecated
7073
default Map<String, Supplier<Discovery>> getDiscoveryTypes(ThreadPool threadPool, TransportService transportService,
7174
NamedWriteableRegistry namedWriteableRegistry,
7275
MasterService masterService,

0 commit comments

Comments
 (0)