Interface MongoDBConfiguration


  • public interface MongoDBConfiguration
    • Method Detail

      • getRemoteServerList

        String getRemoteServerList()
        A list of servers to use. If the string starts with mongodb:// or mongodb+srv://, then it will be used as the full uri. All other values will be assumed to be a ; separated list of servers.
        Returns:
      • getUsername

        String getUsername()
      • getPassword

        String getPassword()
      • getDatabase

        String getDatabase()
      • getSecurityType

        String getSecurityType()
        The MongoDBConfiguration.SecurityType. Can be one of SCRAM_SHA_256, SCRAM_SHA_1, MONGODB_CR, Kerberos, X509, None.
        Any other value will be treated as MONGODB_CR
        Returns:
      • getAuthDatabase

        String getAuthDatabase()
      • getCredential

        default com.mongodb.MongoCredential getCredential()
      • getOptions

        default com.mongodb.MongoClientOptions getOptions()
      • getServers

        default List<com.mongodb.ServerAddress> getServers()