public static class Synchronizer.Builder<T extends Synchronizer>
extends java.lang.Object
Synchronizer objects.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Builds a new
Synchronizer 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> |
setInvalidChangePolicy(OnInvalidChange invalidChangePolicy)
Sets the invalid change policy for the ChangeSet.
|
Synchronizer.Builder<T> |
setType(java.lang.Class<T> type)
Sets the type of synchronizer to build
|
public T build()
Synchronizer object.Synchronizer object.public Synchronizer.Builder<T> setConnection(java.sql.Connection connection)
connection -public Synchronizer.Builder<T> setGraph(PgxGraph graph)
graph - the target graphpublic Synchronizer.Builder<T> setInvalidChangePolicy(OnInvalidChange invalidChangePolicy)
invalidChangePolicy - the invalid change policy.public Synchronizer.Builder<T> setType(java.lang.Class<T> type)
type - the synchronizer type.