Class EventDispatcher
- java.lang.Object
-
- com.mongodb.stitch.core.services.mongodb.remote.sync.internal.EventDispatcher
-
public class EventDispatcher extends Object
-
-
Constructor Summary
Constructors Constructor Description EventDispatcher(String instanceKey, Dispatcher eventDispatcher)
-
Method Summary
Modifier and Type Method Description void
emitEvent(NamespaceSynchronizationConfig nsConfig, ChangeEvent<BsonDocument> event)
Emits a change event for the given document id.
-
-
-
Constructor Detail
-
EventDispatcher
public EventDispatcher(String instanceKey, Dispatcher eventDispatcher)
-
-
Method Detail
-
emitEvent
public void emitEvent(NamespaceSynchronizationConfig nsConfig, ChangeEvent<BsonDocument> event)
Emits a change event for the given document id.- Parameters:
nsConfig
- the configuration for the namespace to which the document referred to by the change event belongs.event
- the change event.
-
-