Class Neo4j.Builder

    • Method Detail

      • build

        public Neo4j build()
        The main build method.
        Specified by:
        build in interface Builder<Neo4j>
        Returns:
        Neo4j
      • config

        public Neo4j.Builder config​(Config config)
        Read the configuration from external file and initialize the builder.
        Parameters:
        config - external configuration
        Returns:
        the builder
      • username

        public Neo4j.Builder username​(String username)
        Create username.
        Parameters:
        username - parameter
        Returns:
        Builder
      • password

        public Neo4j.Builder password​(String password)
        Create password.
        Parameters:
        password - parameter
        Returns:
        Builder
      • uri

        public Neo4j.Builder uri​(String uri)
        Create uri.
        Parameters:
        uri - parameter
        Returns:
        Builder
      • encrypted

        public Neo4j.Builder encrypted​(boolean encrypted)
        Enable ecrypted field.
        Parameters:
        encrypted - parameter
        Returns:
        Builder
      • authenticationEnabled

        public Neo4j.Builder authenticationEnabled​(boolean authenticationEnabled)
        Enable authentication.
        Parameters:
        authenticationEnabled - parameter
        Returns:
        Builder
      • metricsEnabled

        public Neo4j.Builder metricsEnabled​(boolean metricsEnabled)
        Enagle metrics.
        Parameters:
        metricsEnabled - parameter
        Returns:
        Builder
      • logLeakedSessions

        public Neo4j.Builder logLeakedSessions​(boolean logLeakedSessions)
        Eable log leaked sessions.
        Parameters:
        logLeakedSessions - parameter
        Returns:
        Builder
      • maxConnectionPoolSize

        public Neo4j.Builder maxConnectionPoolSize​(int maxConnectionPoolSize)
        Set pool size.
        Parameters:
        maxConnectionPoolSize - parameter
        Returns:
        Builder
      • idleTimeBeforeConnectionTest

        public Neo4j.Builder idleTimeBeforeConnectionTest​(Duration idleTimeBeforeConnectionTest)
        Set idle time.
        Parameters:
        idleTimeBeforeConnectionTest - parameter
        Returns:
        Builder
      • maxConnectionLifetime

        public Neo4j.Builder maxConnectionLifetime​(Duration maxConnectionLifetime)
        Set max life time.
        Parameters:
        maxConnectionLifetime - parameter
        Returns:
        Builder
      • connectionAcquisitionTimeout

        public Neo4j.Builder connectionAcquisitionTimeout​(Duration connectionAcquisitionTimeout)
        Set connection acquisition timeout.
        Parameters:
        connectionAcquisitionTimeout - parameter
        Returns:
        Builder
      • certificate

        public Neo4j.Builder certificate​(Path certFile)
        Set certificate path.
        Parameters:
        certFile - parameter
        Returns:
        Builder
      • hostnameVerificationEnabled

        public Neo4j.Builder hostnameVerificationEnabled​(boolean hostnameVerificationEnabled)
        Enable hostname verification.
        Parameters:
        hostnameVerificationEnabled - parameter
        Returns:
        Builder