public static class ReplicatorBuilder.Pull extends ReplicatorBuilder<java.net.URI,Datastore,ReplicatorBuilder.Pull>
ReplicatorBuilder.Pull, ReplicatorBuilder.Push
Constructor and Description |
---|
Pull() |
Modifier and Type | Method and Description |
---|---|
ReplicatorBuilder.Pull |
batchLimitPerRun(int batchLimitPerRun)
Sets the number of batches to pull in one replication run
|
Replicator |
build()
Builds a replicator based on the configuration set.
|
ReplicatorBuilder.Pull |
changeLimitPerBatch(int changeLimitPerBatch)
Sets the number of changes to fetch from the _changes feed per batch
|
ReplicatorBuilder.Pull |
filter(PullFilter pullPullFilter)
Sets the filter to use for a pull replication
|
ReplicatorBuilder.Pull |
insertBatchSize(int insertBatchSize)
Sets the number of documents to insert into the SQLite database in one transaction
|
ReplicatorBuilder.Pull |
pullAttachmentsInline(boolean pullAttachmentsInline)
Sets whether to pull attachments inline or separately
|
addRequestInterceptors, addRequestInterceptors, addResponseInterceptors, addResponseInterceptors, from, pull, push, start, to, withId
public Replicator build()
ReplicatorBuilder
build
in class ReplicatorBuilder<java.net.URI,Datastore,ReplicatorBuilder.Pull>
Replicator
that will carry out the replicationpublic ReplicatorBuilder.Pull filter(PullFilter pullPullFilter)
pullPullFilter
- The Filter to use during a pull replicationReplicatorBuilder
public ReplicatorBuilder.Pull changeLimitPerBatch(int changeLimitPerBatch)
changeLimitPerBatch
- The number of changes to fetch from the _changes feed per batchReplicatorBuilder
public ReplicatorBuilder.Pull batchLimitPerRun(int batchLimitPerRun)
batchLimitPerRun
- The number of batches to pull in one replication runReplicatorBuilder
public ReplicatorBuilder.Pull insertBatchSize(int insertBatchSize)
insertBatchSize
- The number of documents to insert into the SQLite database in one transactionReplicatorBuilder
public ReplicatorBuilder.Pull pullAttachmentsInline(boolean pullAttachmentsInline)
pullAttachmentsInline
- Whether to pull attachments inline or separatelyReplicatorBuilder