-
public final class WorkManagerReplicatorConfiguration extends AbstractWorkManagerReplicatorConfiguration
Configuration for a
ReplicatorWorker
. A subclass ofWorkManagerReplicatorFactory
produces one of these that describes theReplicator
that will be run by theWorkManager
.This class hides the following properties of a com.couchbase.lite.ReplicatorConfiguration:
continuous - Use
OneTimeWorkRequestBuilder
orPeriodicWorkRequestBuilder
maxAttempts - Use
WorkRequest.Builder.setBackoffCriteria()
maxAttemptWaitTime - Use
WorkRequest.Builder.setBackoffCriteria()
heartbeat - N/A: no connection will be kept alive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
WorkManagerReplicatorConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private Boolean
acceptOnlySelfSignedServerCertificate
private final Set<Collection>
collections
private ReplicatorType
type
private Authenticator
authenticator
private Map<String, String>
headers
private X509Certificate
pinnedServerCertificate
private Boolean
enableAutoPurge
-
Method Summary
Modifier and Type Method Description final Boolean
getAcceptOnlySelfSignedServerCertificate()
final Unit
setAcceptOnlySelfSignedServerCertificate(Boolean acceptOnlySelfSignedServerCertificate)
final Set<Collection>
getCollections()
final ReplicatorType
getType()
final Unit
setType(ReplicatorType type)
final Authenticator
getAuthenticator()
final Unit
setAuthenticator(Authenticator authenticator)
final Map<String, String>
getHeaders()
final Unit
setHeaders(Map<String, String> headers)
final X509Certificate
getPinnedServerCertificate()
final Unit
setPinnedServerCertificate(X509Certificate pinnedServerCertificate)
final Boolean
getEnableAutoPurge()
final Unit
setEnableAutoPurge(Boolean enableAutoPurge)
-
-
Method Detail
-
getAcceptOnlySelfSignedServerCertificate
final Boolean getAcceptOnlySelfSignedServerCertificate()
-
setAcceptOnlySelfSignedServerCertificate
final Unit setAcceptOnlySelfSignedServerCertificate(Boolean acceptOnlySelfSignedServerCertificate)
-
getCollections
final Set<Collection> getCollections()
-
getType
final ReplicatorType getType()
-
getAuthenticator
final Authenticator getAuthenticator()
-
setAuthenticator
final Unit setAuthenticator(Authenticator authenticator)
-
getHeaders
final Map<String, String> getHeaders()
-
setHeaders
final Unit setHeaders(Map<String, String> headers)
-
getPinnedServerCertificate
final X509Certificate getPinnedServerCertificate()
-
setPinnedServerCertificate
final Unit setPinnedServerCertificate(X509Certificate pinnedServerCertificate)
-
getEnableAutoPurge
final Boolean getEnableAutoPurge()
-
setEnableAutoPurge
final Unit setEnableAutoPurge(Boolean enableAutoPurge)
-
-
-
-