KAFKA-9634: Add note about thread safety in the ConfigProvider interface (#8205)

In Kafka Connect, a ConfigProvider instance can be used concurrently (e.g. via a PUT request to the `/connector-plugins/{connectorType}/config/validate` REST endpoint), but there is no mention of concurrent usage in the Javadocs of the ConfigProvider interface. 

It's worth calling out that implementations need to be thread safe.

Reviewers: Konstantine Karantasis <konstantine@confluent.io>
This commit is contained in:
Tom Bentley 2020-03-22 19:58:21 +00:00 committed by Konstantine Karantasis
parent 6f01213390
commit 67ff4776b2
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import java.util.Set;
/** /**
* A provider of configuration data, which may optionally support subscriptions to configuration changes. * A provider of configuration data, which may optionally support subscriptions to configuration changes.
* Implementations are required to safely support concurrent calls to any of the methods in this interface.
*/ */
public interface ConfigProvider extends Configurable, Closeable { public interface ConfigProvider extends Configurable, Closeable {