Class Synchronizer.Builder<T extends Synchronizer>

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setType

        public Synchronizer.Builder<T> setType​(java.lang.Class<T> type)
        Sets the type of synchronizer to build
        Parameters:
        type - the synchronizer type.
        Returns:
        this builder
      • setInvalidChangePolicy

        public Synchronizer.Builder<T> setInvalidChangePolicy​(OnInvalidChange invalidChangePolicy)
        Sets the invalid change policy for the ChangeSet. If not set, ChangeSet defaults value to ERROR
        Parameters:
        invalidChangePolicy - the invalid change policy.
        Returns:
        this builder
      • setGraph

        public Synchronizer.Builder<T> setGraph​(PgxGraph graph)
        Sets the target graph to synchronize.
        Parameters:
        graph - the target graph
        Returns:
        this builder
      • setGraphConfiguration

        public Synchronizer.Builder<T> setGraphConfiguration​(GraphConfig graphConfig)
        Sets the graph configuration to use for synchronization. If not set, synchronizer will use target graph configuration instead.
        Parameters:
        graphConfig - the target graph
        Returns:
        this builder
        Since:
        22.4
      • setConnection

        public Synchronizer.Builder<T> setConnection​(java.sql.Connection connection)
        Sets the database connection to use for synchronization. If not set, synchronizer will try to obtain connection information from the graph config associated with the given graph.
        Parameters:
        connection -
      • setParallelHintDegree

        public Synchronizer.Builder<T> setParallelHintDegree​(int parallelHintDegree)
        Sets the parallel hint degree to use in synchronizer queries.
        Parameters:
        parallelHintDegree - the parallel hint degree
        Returns:
        this builder
        Since:
        24.1