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.listener.Listenable<ReplicatorChange,,ReplicatorChangeListener> AutoCloseable
-
Field Summary
Fields inherited from class com.couchbase.lite.internal.replicator.BaseReplicator
dispatcher -
Constructor Summary
ConstructorsConstructorDescriptionReplicator(ReplicatorConfiguration config) Initializes a replicator with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, close, getConfig, getLocalC4Replicator, getMessageC4Replicator, getPendingDocumentIds, getPendingDocumentIds, getRemoteC4Replicator, getServerCertificates, getStatus, isClosed, isDocumentPending, isDocumentPending, removeChangeListener, start, start, stop, toStringMethods inherited from class com.couchbase.lite.internal.replicator.BaseReplicator
closeC4Replicator, getC4Replicator, getId, getReplicatorLock, setC4Replicator
-
Constructor Details
-
Replicator
Initializes a replicator with the given configuration.- Parameters:
config- replicator configuration
-
-
Method Details
-
createReplicatorForTarget
@NonNull protected com.couchbase.lite.internal.core.C4Replicator createReplicatorForTarget(@NonNull Endpoint target) throws LiteCoreException - Specified by:
createReplicatorForTargetin classAbstractReplicator- Throws:
LiteCoreException
-
handleOffline
- Specified by:
handleOfflinein classAbstractReplicator
-