Uses of Interface
org.springframework.data.mongodb.core.messaging.MessageListener
Package
Description
MongoDB specific messaging support for listening to eg.
-
Uses of MessageListener in org.springframework.data.mongodb.core.messaging
Modifier and TypeMethodDescriptionMessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>,
? super T> ChangeStreamRequest.getMessageListener()
MessageListener<S,
? super T> SubscriptionRequest.getMessageListener()
Obtain theMessageListener
to publishmessages
to.MessageListener<org.bson.Document,
? super T> TailableCursorRequest.getMessageListener()
Modifier and TypeMethodDescriptionstatic <T> ChangeStreamRequest.ChangeStreamRequestBuilder<T>
ChangeStreamRequest.builder
(MessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>, ? super T> listener) Obtain a shiny newChangeStreamRequest.ChangeStreamRequestBuilder
and start defining yourChangeStreamRequest
in this fancy fluent way.static <T> TailableCursorRequest.TailableCursorRequestBuilder<T>
TailableCursorRequest.builder
(MessageListener<org.bson.Document, ? super T> listener) Obtain a shiny newTailableCursorRequest.TailableCursorRequestBuilder
and start defining options in this fancy fluent way.ChangeStreamRequest.ChangeStreamRequestBuilder.publishTo
(MessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>, ? super T> messageListener) Set theMessageListener
eventmessages
will be published to.TailableCursorRequest.TailableCursorRequestBuilder.publishTo
(MessageListener<org.bson.Document, ? super T> messageListener) Set theMessageListener
eventmessages
will be published to.ModifierConstructorDescriptionChangeStreamRequest
(MessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>, ? super T> messageListener, SubscriptionRequest.RequestOptions options) TailableCursorRequest
(MessageListener<org.bson.Document, ? super T> messageListener, SubscriptionRequest.RequestOptions options)