Class Synchronizer.Builder<T extends Synchronizer>

java.lang.Object
oracle.pgx.api.Synchronizer.Builder<T>
Enclosing interface:
Synchronizer

public static class Synchronizer.Builder<T extends Synchronizer> extends Object
Builder class for Synchronizer objects.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setType

      public Synchronizer.Builder<T> setType(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(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
    • build

      public T build()
      Builds a new Synchronizer object.
      Returns:
      new Synchronizer object.