Package oracle.pgx.api
Class Synchronizer.Builder<T extends Synchronizer>
java.lang.Object
oracle.pgx.api.Synchronizer.Builder<T>
- Enclosing interface:
- Synchronizer
Builder class for
Synchronizer objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSynchronizerobject.setConnection(Connection connection) Sets the database connection to use for synchronization.Sets the target graph to synchronize.setGraphConfiguration(GraphConfig graphConfig) Sets the graph configuration to use for synchronization.setInvalidChangePolicy(OnInvalidChange invalidChangePolicy) Sets the invalid change policy for the ChangeSet.setParallelHintDegree(int parallelHintDegree) Sets the parallel hint degree to use in synchronizer queries.Sets the type of synchronizer to build
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setType
Sets the type of synchronizer to build- Parameters:
type- the synchronizer type.- Returns:
- this builder
-
setInvalidChangePolicy
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
Sets the target graph to synchronize.- Parameters:
graph- the target graph- Returns:
- this builder
-
setGraphConfiguration
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
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
Sets the parallel hint degree to use in synchronizer queries.- Parameters:
parallelHintDegree- the parallel hint degree- Returns:
- this builder
- Since:
- 24.1
-
build
Builds a newSynchronizerobject.- Returns:
- new
Synchronizerobject.
-