com.supermap.services.rest.repository

Class MongoDBRepoSetting

  • java.lang.Object
    • RepositorySetting
      • com.supermap.services.rest.repository.MongoDBRepoSetting


  • public class MongoDBRepoSetting
    extends RepositorySetting
    

    The temporary storage setting class of MongoDB

    Since:
    8.0.0
    • Field Detail

      • host

        public java.lang.String host
        
      • port

        public int port
        
      • username

        public java.lang.String username
        
      • password

        public java.lang.String password
        
      • dbName

        public java.lang.String dbName
        
      • hoursOfExpireAfter

        public int hoursOfExpireAfter
        
    • Constructor Detail

      • MongoDBRepoSetting

        public MongoDBRepoSetting()
        
    • Method Detail

      • host

        public MongoDBRepoSetting host(java.lang.String host)
        

        Returns the service address of MongoDB

        Parameters:
        host -
        Returns:
        Since:
        8.0.0
      • port

        public MongoDBRepoSetting port(int port)
        

        Returns the server port of MongoDB

        Parameters:
        port -
        Returns:
        Since:
        8.0.0
      • username

        public MongoDBRepoSetting username(java.lang.String username)
        

        Returns the user name of Mongo

        Parameters:
        username -
        Returns:
        Since:
        8.0.0
      • password

        public MongoDBRepoSetting password(java.lang.String password)
        

        Returns the password of MongoDB

        Parameters:
        password -
        Returns:
        Since:
        8.0.0
      • dbName

        public MongoDBRepoSetting dbName(java.lang.String dbName)
        

        Returns the database name of MongoDB

        Parameters:
        dbName -
        Returns:
        Since:
        8.0.0
      • hoursOfExpireAfter

        public MongoDBRepoSetting hoursOfExpireAfter(int hoursOfExpireAfter)
        

        Returns the expiration time of the temporary resource restored in MongoDB.

        Parameters:
        hoursOfExpireAfter -
        Returns:
        Since:
        8.0.0
      • toString

        public java.lang.String toString()
        
      • shareable

        public boolean shareable()