Package org.apache.pulsar.io.mongodb
Class MongoSinkConfig
java.lang.Object
org.apache.pulsar.io.mongodb.MongoAbstractConfig
org.apache.pulsar.io.mongodb.MongoSinkConfig
- All Implemented Interfaces:
Serializable
Configuration class for the MongoDB Sink Connectors.
- See Also:
-
Field Summary
Fields inherited from class org.apache.pulsar.io.mongodb.MongoAbstractConfig
DEFAULT_BATCH_SIZE, DEFAULT_BATCH_TIME_MS -
Constructor Summary
ConstructorsConstructorDescriptionMongoSinkConfig(String mongoUri, String database, String collection, int batchSize, long batchTimeMs) -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoSinkConfigstatic MongoSinkConfigload(Map<String, Object> map, SinkContext sinkContext) voidvalidate()
-
Constructor Details
-
MongoSinkConfig
-
-
Method Details
-
load
- Throws:
IOException
-
load
public static MongoSinkConfig load(Map<String, Object> map, SinkContext sinkContext) throws IOException- Throws:
IOException
-
validate
public void validate()- Overrides:
validatein classMongoAbstractConfig
-