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.NativeImplLiteCoreExceptionpublic 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.NativeImplLiteCoreExceptionpublic void nFree(long handle)
nFree in interface C4Listener.NativeImplpublic void nShareDb(long handle,
@NonNull
String name,
long c4Db)
throws LiteCoreException
nShareDb in interface C4Listener.NativeImplLiteCoreExceptionpublic void nUnshareDb(long handle,
long c4Db)
throws LiteCoreException
nUnshareDb in interface C4Listener.NativeImplLiteCoreException@NonNull public List<String> nGetUrls(long handle, long c4Db) throws LiteCoreException
nGetUrls in interface C4Listener.NativeImplLiteCoreExceptionpublic int nGetPort(long handle)
nGetPort in interface C4Listener.NativeImpl@NonNull public ConnectionStatus nGetConnectionStatus(long handle)
nGetConnectionStatus in interface C4Listener.NativeImpl@NonNull public String nGetUriFromPath(@NonNull String path)
nGetUriFromPath in interface C4Listener.NativeImpl