Class PostgreSqlRule.Configuration

  • Enclosing class:
    PostgreSqlRule

    public static class PostgreSqlRule.Configuration
    extends java.lang.Object

    Configuration of the PostgreSql database.

    Follows builder pattern to allow configuring and passing to PostgreSqlRule constructor.

    • Constructor Detail

      • Configuration

        public Configuration()
    • Method Detail

      • server

        public PostgreSqlRule.Configuration server​(java.lang.String server)
        Specifies the server.
        Parameters:
        server - Server.
        Returns:
        this.
      • database

        public PostgreSqlRule.Configuration database​(java.lang.String databaseName)
        Specifies the database.
        Parameters:
        databaseName - Database name.
        Returns:
        this.
      • username

        public PostgreSqlRule.Configuration username​(java.lang.String username)
        Specifies the user name.
        Parameters:
        username - User name.
        Returns:
        this.
      • password

        public PostgreSqlRule.Configuration password​(java.lang.String password)
        Specifies the password.
        Parameters:
        password - Password.
        Returns:
        this.
      • maxConnections

        public PostgreSqlRule.Configuration maxConnections​(int maxConnections)
        Specifies the max connections.
        Parameters:
        maxConnections - Max connections.
        Returns:
        this.