public class NativeC4Listener extends Object implements C4Listener.NativeImpl
SYNC_API
Constructor and Description |
---|
NativeC4Listener() |
Modifier and Type | Method and Description |
---|---|
void |
nFree(long handle) |
ConnectionStatus |
nGetConnectionStatus(long handle) |
int |
nGetPort(long handle) |
String |
nGetUriFromPath(String path) |
List<String> |
nGetUrls(long handle,
long c4Db) |
void |
nShareDb(long handle,
String name,
long c4Db) |
long |
nStartHttp(long context,
int port,
String iFace,
int apis,
String dbPath,
boolean allowCreateDBs,
boolean allowDeleteDBs,
boolean push,
boolean pull,
boolean deltaSync,
boolean requirePasswordAuth) |
long |
nStartTls(long context,
int port,
String iFace,
int apis,
String dbPath,
boolean allowCreateDBs,
boolean allowDeleteDBs,
boolean push,
boolean pull,
boolean deltaSync,
long keyPair,
byte[] serverCert,
boolean requireClientCerts,
byte[] rootClientCerts,
boolean requirePasswordAuth) |
void |
nUnshareDb(long handle,
long c4Db) |
public long nStartHttp(long context, int port, @Nullable String iFace, int apis, @NonNull String dbPath, boolean allowCreateDBs, boolean allowDeleteDBs, boolean push, boolean pull, boolean deltaSync, boolean requirePasswordAuth) throws LiteCoreException
nStartHttp
in interface C4Listener.NativeImpl
LiteCoreException
public long nStartTls(long context, int port, @Nullable String iFace, int apis, @NonNull String dbPath, boolean allowCreateDBs, boolean allowDeleteDBs, boolean push, boolean pull, boolean deltaSync, long keyPair, @NonNull byte[] serverCert, boolean requireClientCerts, @Nullable byte[] rootClientCerts, boolean requirePasswordAuth) throws LiteCoreException
nStartTls
in interface C4Listener.NativeImpl
LiteCoreException
public void nFree(long handle)
nFree
in interface C4Listener.NativeImpl
public void nShareDb(long handle, @NonNull String name, long c4Db) throws LiteCoreException
nShareDb
in interface C4Listener.NativeImpl
LiteCoreException
public void nUnshareDb(long handle, long c4Db) throws LiteCoreException
nUnshareDb
in interface C4Listener.NativeImpl
LiteCoreException
@NonNull public List<String> nGetUrls(long handle, long c4Db) throws LiteCoreException
nGetUrls
in interface C4Listener.NativeImpl
LiteCoreException
public int nGetPort(long handle)
nGetPort
in interface C4Listener.NativeImpl
@NonNull public ConnectionStatus nGetConnectionStatus(long handle)
nGetConnectionStatus
in interface C4Listener.NativeImpl
@NonNull public String nGetUriFromPath(String path)
nGetUriFromPath
in interface C4Listener.NativeImpl