public static class Replication.ChangeEvent
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal) |
protected |
ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal,
ReplicationStateTransition transition) |
protected |
ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal,
java.lang.Throwable error) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChangeCount()
The total number of changes to be processed, if the task is active, else 0.
|
int |
getCompletedChangeCount()
The number of completed changes processed, if the task is active, else 0.
|
java.lang.Throwable |
getError()
Get the error that triggered this callback, if any.
|
Replication |
getSource()
Get the owner Replication object that generated this ChangeEvent.
|
Replication.ReplicationStatus |
getStatus()
The replication's current state, one of {stopped, offline, idle, active}.
|
ReplicationStateTransition |
getTransition()
Get the ReplicationStateTransition associated with this ChangeEvent, or nil
if it was not associated with a state transition.
|
java.lang.String |
toString() |
protected ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal)
protected ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal,
ReplicationStateTransition transition)
protected ChangeEvent(com.couchbase.lite.replicator.ReplicationInternal replInternal,
java.lang.Throwable error)
public Replication getSource()
public ReplicationStateTransition getTransition()
public int getChangeCount()
public int getCompletedChangeCount()
public Replication.ReplicationStatus getStatus()
public java.lang.Throwable getError()
public java.lang.String toString()
toString in class java.lang.Object