Package oracle.pgx.api
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 java.lang.Object
Builder class forSynchronizer
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
Builds a newSynchronizer
object.Synchronizer.Builder<T>
setConnection(java.sql.Connection connection)
Sets the database connection to use for synchronization.Synchronizer.Builder<T>
setGraph(PgxGraph graph)
Sets the target graph to synchronize.Synchronizer.Builder<T>
setGraphConfiguration(GraphConfig graphConfig)
Sets the graph configuration to use for synchronization.Synchronizer.Builder<T>
setInvalidChangePolicy(OnInvalidChange invalidChangePolicy)
Sets the invalid change policy for the ChangeSet.Synchronizer.Builder<T>
setParallelHintDegree(int parallelHintDegree)
Sets the parallel hint degree to use in synchronizer queries.Synchronizer.Builder<T>
setType(java.lang.Class<T> type)
Sets the type of synchronizer to build
-
-
-
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
-
build
public T build()
Builds a newSynchronizer
object.- Returns:
- new
Synchronizer
object.
-
-