Package com.couchbase.lite
Class ReplicatorConfiguration
java.lang.Object
com.couchbase.lite.internal.BaseReplicatorConfiguration
com.couchbase.lite.AbstractReplicatorConfiguration
com.couchbase.lite.ReplicatorConfiguration
Configuration for a Replicator
-
Nested Class Summary
Nested classes/interfaces inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
AbstractReplicatorConfiguration.ReplicatorType
-
Field Summary
Fields inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
DISABLE_HEARTBEAT
Fields inherited from class com.couchbase.lite.internal.BaseReplicatorConfiguration
collectionConfigurations
-
Constructor Summary
ConstructorsConstructorDescriptionReplicatorConfiguration
(Database database, Endpoint target) Deprecated.Use ReplicatorConfiguration(Endpoint)ReplicatorConfiguration
(Endpoint target) Create a Replicator ConfigurationCopy a Replicator Configuration -
Method Summary
Modifier and TypeMethodDescriptionboolean
ENTERPRISE EDITION APIsetAcceptOnlySelfSignedServerCertificate
(boolean selfSignedOnly) ENTERPRISE EDITION APIMethods inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
addCollection, addCollections, configureDefaultCollection, getAuthenticator, getChannels, getCollectionConfiguration, getCollections, getConflictResolver, getDatabase, getDocumentIDs, getHeaders, getHeartbeat, getMaxAttempts, getMaxAttemptWaitTime, getPinnedServerCertificate, getPinnedServerX509Certificate, getProxyAuthenticator, getPullFilter, getPushFilter, getReplicatorType, getTarget, getType, isAcceptParentDomainCookies, isAutoPurgeEnabled, isContinuous, removeCollection, setAcceptParentDomainCookies, setAuthenticator, setAutoPurgeEnabled, setChannels, setConflictResolver, setContinuous, setDocumentIDs, setHeaders, setHeartbeat, setMaxAttempts, setMaxAttemptWaitTime, setPinnedServerCertificate, setPinnedServerX509Certificate, setProxyAuthenticator, setPullFilter, setPushFilter, setReplicatorType, setType, toString
Methods inherited from class com.couchbase.lite.internal.BaseReplicatorConfiguration
addCollectionInternal, getCollectionConfigurations, removeCollectionInternal
-
Constructor Details
-
ReplicatorConfiguration
Deprecated.Use ReplicatorConfiguration(Endpoint)Create a Replicator Configuration- Parameters:
database
- the database to be synchronizedtarget
- the endpoint with which to synchronize it
-
ReplicatorConfiguration
Create a Replicator Configuration- Parameters:
target
- the target endpoint
-
ReplicatorConfiguration
Copy a Replicator Configuration- Parameters:
config
- the config to copy
-
-
Method Details
-
setAcceptOnlySelfSignedServerCertificate
@NonNull public ReplicatorConfiguration setAcceptOnlySelfSignedServerCertificate(boolean selfSignedOnly) ENTERPRISE EDITION API
Specify whether the replicator will accept only self-signed certificates. If set true, the replicator will accept any self-signed but NO not self-signed certificates This guards against using this mode accidentally, in production. The default value is false.
- Parameters:
selfSignedOnly
- Whether the replicator will accept any and only self-signed certificates.- Returns:
- this.
-
isAcceptOnlySelfSignedServerCertificate
public boolean isAcceptOnlySelfSignedServerCertificate()ENTERPRISE EDITION API
Return whether the replicator will accept any and only self-signed server certificates.
-