Package org.apache.pulsar.io.mongodb
Class MongoSource
- java.lang.Object
-
- org.apache.pulsar.io.core.PushSource<byte[]>
-
- org.apache.pulsar.io.mongodb.MongoSource
-
- All Implemented Interfaces:
AutoCloseable,Source<byte[]>
public class MongoSource extends PushSource<byte[]>
The base class for MongoDB sources.
-
-
Constructor Summary
Constructors Constructor Description MongoSource()MongoSource(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidopen(Map<String,Object> config, SourceContext sourceContext)-
Methods inherited from class org.apache.pulsar.io.core.PushSource
consume, getQueueLength, read
-
-
-
-
Constructor Detail
-
MongoSource
public MongoSource()
-
MongoSource
public MongoSource(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider)
-
-