Package com.couchbase.lite
Class Replicator
- java.lang.Object
-
- com.couchbase.lite.internal.replicator.BaseReplicator
-
- com.couchbase.lite.AbstractReplicator
-
- com.couchbase.lite.Replicator
-
- All Implemented Interfaces:
com.couchbase.lite.internal.Listenable<ReplicatorChange,ReplicatorChangeListener>,AutoCloseable
public final class Replicator extends AbstractReplicator
-
-
Constructor Summary
Constructors Constructor Description Replicator(ReplicatorConfiguration config)Initializes a replicator with the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.couchbase.lite.internal.core.C4ReplicatorcreateReplicatorForTarget(Endpoint target)protected voidhandleOffline(ReplicatorActivityLevel prevState, boolean nowOnline)-
Methods inherited from class com.couchbase.lite.AbstractReplicator
addChangeListener, addChangeListener, addDocumentReplicationListener, addDocumentReplicationListener, getConfig, getLocalC4Replicator, getMessageC4Replicator, getPendingDocumentIds, getPendingDocumentIds, getRemoteC4Replicator, getServerCertificates, getStatus, isDocumentPending, isDocumentPending, removeChangeListener, start, start, stop, toString
-
-
-
-
Constructor Detail
-
Replicator
public Replicator(@NonNull ReplicatorConfiguration config)Initializes a replicator with the given configuration.- Parameters:
config- replicator configuration
-
-
Method Detail
-
createReplicatorForTarget
@NonNull protected com.couchbase.lite.internal.core.C4Replicator createReplicatorForTarget(@NonNull Endpoint target) throws LiteCoreException- Specified by:
createReplicatorForTargetin classAbstractReplicator- Throws:
LiteCoreException
-
handleOffline
protected void handleOffline(@NonNull ReplicatorActivityLevel prevState, boolean nowOnline)- Specified by:
handleOfflinein classAbstractReplicator
-
-