public static class Replicator.SyncHandleBuilder
extends java.lang.Object
The SyncHandle
builder for replication.
Constructor and Description |
---|
SyncHandleBuilder() |
Modifier and Type | Method and Description |
---|---|
SyncHandle |
configure()
Configures a new
SyncHandle to control the replication. |
Replicator.SyncHandleBuilder |
delay(TimeSpan syncDelay)
Sets the sync delay.
|
Replicator.SyncHandleBuilder |
ofType(ReplicationType replicationType)
Sets the
ReplicationType . |
Replicator.SyncHandleBuilder |
withListener(SyncEventListener listener)
Sets the
SyncEventListener to listen to sync events. |
Replicator.SyncHandleBuilder |
withSyncTemplate(SyncTemplate syncTemplate)
Sets the
SyncTemplate for replication. |
public Replicator.SyncHandleBuilder withSyncTemplate(SyncTemplate syncTemplate)
Sets the SyncTemplate
for replication.
syncTemplate
- the sync template implementationReplicator.SyncHandleBuilder
instance.public Replicator.SyncHandleBuilder ofType(ReplicationType replicationType)
Sets the ReplicationType
.
replicationType
- the replication typeReplicator.SyncHandleBuilder
instance.public Replicator.SyncHandleBuilder delay(TimeSpan syncDelay)
Sets the sync delay. It is the time gap between 2 successive replication.
syncDelay
- the sync delayReplicator.SyncHandleBuilder
instance.public Replicator.SyncHandleBuilder withListener(SyncEventListener listener)
Sets the SyncEventListener
to listen to sync events.
listener
- the listenerReplicator.SyncHandleBuilder
instance.public SyncHandle configure()
Configures a new SyncHandle
to control the replication.