newConfig
Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters:
Parameters
The directory in which the database is stored.
ENTERPRISE EDITION API: The database encryption key.
See also
Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters:
Note: A document that is blocked by a document Id filter will not be auto-purged regardless of the setting of the enableAutoPurge property
Parameters
(required) The max size of the log file in bytes.
a map of collections to be replicated, to their configurations.
replicator type: push, pull, or push and pull: default is push and pull.
continuous flag: true for continuous, false by default.
connection authenticator.
extra HTTP headers to send in all requests to the remote target.
target server's SSL certificate.
max retry attempts after connection failure.
max time between retry attempts (exponential backoff).
heartbeat interval, in seconds.
auto-purge enabled.
ENTERPRISE EDITION API: Whether the replicator will accept all/only self-signed certificates.
Advanced: accept cookies for parent domains.
See also
ENTERPRISE EDITION API
Create a MessageEndpointListenerConfiguration, overriding the receiver's values with the passed parameters:
Parameters
the local collections.
(required) data transport type: messages or bytes.
See also
ENTERPRISE EDITION API
Create a URLEndpointListenerConfigurations, overriding the receiver's values with the passed parameters:
Parameters
the local collection.
the interface on which to listen: default is 0.0.0.0.
listener port: default is next available port.
true to disable TLS: default is false.
certs and keys for the listener.
authenticator.
true for a read-only connection.
true to enable delta sync.
See also
Create a CollectionConfiguration, overriding the receiver's values with the passed parameters:
Parameters
Sync Gateway channel names.
IDs of documents to be replicated: default is all documents.
filter for pulled documents.
filter for pushed documents.
conflict resolver.
See also
Create a FullTextIndexConfiguration, overriding the receiver's values with the passed parameters:
Parameters
(required) the expressions to be matched.
See also
Create a ValueIndexConfiguration, overriding the receiver's values with the passed parameters:
Parameters
(required) the expressions to be matched.
See also
Create a LogFileConfiguration, overriding the receiver's values with the passed parameters:
Parameters
(required) the directory in which the logs files are stored.
the max size of the log file in bytes.
the number of rotated logs that are saved.
whether or not to log in plaintext.
See also
Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters:
Parameters
The directory in which the database is stored.
See also
Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters.
Note: A document that is blocked by a document Id filter will not be auto-purged regardless of the setting of the enableAutoPurge property
Parameters
(required) The replication endpoint.
a map of collections to be replicated, to their configurations.
replicator type: push, pull, or push and pull: default is push and pull.
continuous flag: true for continuous, false by default.
connection authenticator.
extra HTTP headers to send in all requests to the remote target.
target server's SSL certificate.
max retry attempts after connection failure.
max time between retry attempts (exponential backoff).
heartbeat interval, in seconds.
auto-purge enabled.
Advanced: accept cookies for parent domains.
See also
Deprecated
Use ReplicatorConfigurationFactory.newConfig(Endpoint?, Map<Set<Collection>, CollectionConfiguration?>?, ...)
Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters:
Note: A document that is blocked by a document Id filter will not be auto-purged regardless of the setting of the enableAutoPurge property
Warning: This factory method configures only the default collection! Using it on a configuration that describes any collections other than the default will lose all information associated with those collections
Parameters
the local database
(required) The replication endpoint.
replicator type: push, pull, or push and pull: default is push and pull.
continuous flag: true for continuous. False by default.
connection authenticator.
extra HTTP headers to send in all requests to the remote target.
target server's SSL certificate.
Sync Gateway channel names.
IDs of documents to be replicated: default is all documents.
filter for pushed documents.
filter for pulled documents.
conflict resolver.
max retry attempts after connection failure.
max time between retry attempts (exponential backoff).
heartbeat interval, in seconds.
auto-purge enabled.
ENTERPRISE EDITION API: Whether the replicator will accept all/only self-signed certificates.
Advanced: accept cookies for parent domains.
See also
Deprecated
Use MessageEndpointListenerConfigurationFactory().newConfig(Endpoint?, Set<Collection>?)
ENTERPRISE EDITION API
Create a MessageEndpointListenerConfiguration, overriding the receiver's values with the passed parameters:
Parameters
the local database.
(required) data transport type: messages or bytes.
See also
Deprecated
Use URLEndpointListenerConfigurations().newConfig(Set<Collection>?, ...)
ENTERPRISE EDITION API
Create a URLEndpointListenerConfigurations, overriding the receiver's values with the passed parameters:
Parameters
the local database.
the interface on which to listen: default is 0.0.0.0.
listener port: default is next available port.
true to disable TLS: default is false.
certs and keys for the listener.
authenticator.
true for a read-only connection.
true to enable delta sync.
See also
Deprecated
Use ReplicatorConfigurationFactory.newConfig(Endpoint?, Map<Set<Collection>, CollectionConfiguration?>?, ...)
Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters:
Note: A document that is blocked by a document Id filter will not be auto-purged regardless of the setting of the enableAutoPurge property
Warning: This factory method configures only the default collection! Using it on a configuration that describes any collections other than the default will lose all information associated with those collections
Parameters
the local database.
(required) The replication endpoint.
replicator type: push, pull, or push and pull: default is push and pull.
continuous flag: true for continuous, false by default.
connection authenticator.
extra HTTP headers to send in all requests to the remote target.
target server's SSL certificate.
Sync Gateway channel names.
IDs of documents to be replicated: default is all documents.
filter for pushed documents.
filter for pulled documents.
conflict resolver.
max retry attempts after connection failure.
max time between retry attempts (exponential backoff).
heartbeat interval, in seconds.
auto-purge enabled.
Advanced: accept cookies for parent domains.