public class ReplicatorConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReplicatorConfiguration.ReplicatorType |
Constructor and Description |
---|
ReplicatorConfiguration(Database database,
Database target) |
ReplicatorConfiguration(Database database,
Object target,
ReplicatorConfiguration.ReplicatorType replicatorType,
boolean continuous,
ConflictResolver conflictResolver,
Authenticator authenticator,
byte[] pinnedServerCertificate,
List<String> channels,
List<String> documentIDs) |
ReplicatorConfiguration(Database database,
URI target) |
Modifier and Type | Method and Description |
---|---|
ReplicatorConfiguration |
copy() |
Authenticator |
getAuthenticator() |
List<String> |
getChannels()
A set of Sync Gateway channel names to pull from.
|
ConflictResolver |
getConflictResolver()
The conflict resolver for this replicator.
|
Database |
getDatabase() |
List<String> |
getDocumentIDs()
A set of document IDs to filter by: if not nil, only documents with these IDs will be pushed
and/or pulled.
|
byte[] |
getPinnedServerCertificate() |
ReplicatorConfiguration.ReplicatorType |
getReplicatorType() |
Object |
getTarget() |
boolean |
isContinuous() |
void |
setAuthenticator(Authenticator authenticator) |
void |
setChannels(List<String> channels) |
void |
setConflictResolver(ConflictResolver conflictResolver) |
void |
setContinuous(boolean continuous) |
void |
setDocumentIDs(List<String> documentIDs) |
void |
setPinnedServerCertificate(byte[] pinnedServerCertificate) |
void |
setReplicatorType(ReplicatorConfiguration.ReplicatorType replicatorType) |
public ReplicatorConfiguration(Database database, Object target, ReplicatorConfiguration.ReplicatorType replicatorType, boolean continuous, ConflictResolver conflictResolver, Authenticator authenticator, byte[] pinnedServerCertificate, List<String> channels, List<String> documentIDs)
public Database getDatabase()
public Object getTarget()
public ReplicatorConfiguration.ReplicatorType getReplicatorType()
public void setReplicatorType(ReplicatorConfiguration.ReplicatorType replicatorType)
public boolean isContinuous()
public void setContinuous(boolean continuous)
public ConflictResolver getConflictResolver()
public void setConflictResolver(ConflictResolver conflictResolver)
public byte[] getPinnedServerCertificate()
public void setPinnedServerCertificate(byte[] pinnedServerCertificate)
public Authenticator getAuthenticator()
public void setAuthenticator(Authenticator authenticator)
public List<String> getChannels()
public List<String> getDocumentIDs()
public ReplicatorConfiguration copy()