Class MachineProperties.Mongo
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
- Enclosing class:
- MachineProperties
Configuration for MongoDB-based machine ID distribution.
This configuration specifies the MongoDB database used for storing machine ID assignments and coordination data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the MongoDB database name.voidsetDatabase(String database) Sets the MongoDB database name.
-
Constructor Details
-
Mongo
public Mongo()
-
-
Method Details
-
getDatabase
Gets the MongoDB database name.- Returns:
- the database name
-
setDatabase
Sets the MongoDB database name.- Parameters:
database- the database name to set
-