Class Message.MessageProperties.MessagePropertiesBuilder
java.lang.Object
org.springframework.data.mongodb.core.messaging.Message.MessageProperties.MessagePropertiesBuilder
- Enclosing class:
Message.MessageProperties
Builder for
Message.MessageProperties.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()collectionName(String collectionName) databaseName(String dbName)
-
Constructor Details
-
MessagePropertiesBuilder
public MessagePropertiesBuilder()
-
-
Method Details
-
databaseName
@Contract("_ -> this") public Message.MessageProperties.MessagePropertiesBuilder databaseName(String dbName) - Parameters:
dbName- must not be null.- Returns:
- this.
-
collectionName
@Contract("_ -> this") public Message.MessageProperties.MessagePropertiesBuilder collectionName(String collectionName) - Parameters:
collectionName- must not be null.- Returns:
- this
-
build
- Returns:
- the built
Message.MessageProperties.
-