public class C4Replicator extends C4NativePeer
Instances of this class are created using static factory methods
WARNING! This class and its members are referenced by name, from native code.
Modifier and Type | Method and Description |
---|---|
void |
close() |
Set<String> |
getPendingDocIDs() |
C4ReplicatorStatus |
getStatus() |
boolean |
isDocumentPending(String docId) |
void |
setHostReachable(boolean reachable) |
void |
setOptions(byte[] options) |
void |
setProgressLevel(int level) |
void |
start(boolean restart) |
void |
stop() |
String |
toString() |
public static final String WEBSOCKET_SCHEME
public static final String WEBSOCKET_SECURE_CONNECTION_SCHEME
public static final String MESSAGE_SCHEME
public static final String C4_REPLICATOR_SCHEME_2
public static final String C4_REPLICATOR_TLS_SCHEME_2
public static final String REPLICATOR_OPTION_DOC_IDS
public static final String REPLICATOR_OPTION_CHANNELS
public static final String REPLICATOR_OPTION_FILTER
public static final String REPLICATOR_OPTION_FILTER_PARAMS
public static final String REPLICATOR_OPTION_SKIP_DELETED
public static final String REPLICATOR_OPTION_NO_INCOMING_CONFLICTS
public static final String REPLICATOR_OPTION_OUTGOING_CONFLICTS
public static final String REPLICATOR_CHECKPOINT_INTERVAL
public static final String REPLICATOR_OPTION_REMOTE_DB_UNIQUE_ID
public static final String REPLICATOR_OPTION_PROGRESS_LEVEL
public static final String REPLICATOR_OPTION_DISABLE_DELTAS
public static final String REPLICATOR_OPTION_MAX_RETRIES
public static final String REPLICATOR_OPTION_MAX_RETRY_INTERVAL
public static final String REPLICATOR_OPTION_ENABLE_AUTO_PURGE
public static final String REPLICATOR_OPTION_ROOT_CERTS
public static final String REPLICATOR_OPTION_PINNED_SERVER_CERT
public static final String REPLICATOR_OPTION_SELF_SIGNED_SERVER_CERT
public static final String REPLICATOR_OPTION_EXTRA_HEADERS
public static final String REPLICATOR_OPTION_COOKIES
public static final String REPLICATOR_OPTION_ACCEPT_PARENT_COOKIES
public static final String REPLICATOR_OPTION_AUTHENTICATION
public static final String REPLICATOR_OPTION_PROXY_SERVER
public static final String REPLICATOR_HEARTBEAT_INTERVAL
public static final String SOCKET_OPTION_WS_PROTOCOLS
public static final String REPLICATOR_AUTH_TYPE
public static final String REPLICATOR_AUTH_USER_NAME
public static final String REPLICATOR_AUTH_PASSWORD
public static final String REPLICATOR_AUTH_CLIENT_CERT
public static final String REPLICATOR_AUTH_CLIENT_CERT_KEY
public static final String REPLICATOR_AUTH_TOKEN
public static final String AUTH_TYPE_BASIC
public static final String AUTH_TYPE_SESSION
public static final String AUTH_TYPE_OPEN_ID_CONNECT
public static final String AUTH_TYPE_FACEBOOK
public static final String AUTH_TYPE_CLIENT_CERT
public static final int PROGRESS_OVERALL
public static final int PROGRESS_PER_DOC
public static final int PROGRESS_PER_ATTACHMENT
public void start(boolean restart)
public void stop()
@CallSuper public void close()
public void setOptions(@Nullable byte[] options)
@Nullable public C4ReplicatorStatus getStatus()
public boolean isDocumentPending(String docId) throws LiteCoreException
LiteCoreException
@NonNull public Set<String> getPendingDocIDs() throws LiteCoreException
LiteCoreException
public void setProgressLevel(int level) throws LiteCoreException
LiteCoreException
public void setHostReachable(boolean reachable)
@NonNull public String toString()
toString
in class C4NativePeer