mirror of https://github.com/apache/kafka.git
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:
parent
6f01213390
commit
67ff4776b2
|
@ -25,6 +25,7 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* 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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue