Class NativeC4Listener
- java.lang.Object
-
- com.couchbase.lite.internal.core.impl.NativeC4Listener
-
- All Implemented Interfaces:
C4Listener.NativeImpl
public class NativeC4Listener extends Object implements C4Listener.NativeImpl
The C4Listener companion object
-
-
Field Summary
-
Fields inherited from interface com.couchbase.lite.internal.core.C4Listener.NativeImpl
SYNC_API
-
-
Constructor Summary
Constructors Constructor Description NativeC4Listener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
nStartHttp
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
- Specified by:
nStartHttp
in interfaceC4Listener.NativeImpl
- Throws:
LiteCoreException
-
nStartTls
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
- Specified by:
nStartTls
in interfaceC4Listener.NativeImpl
- Throws:
LiteCoreException
-
nFree
public void nFree(long handle)
- Specified by:
nFree
in interfaceC4Listener.NativeImpl
-
nShareDb
public void nShareDb(long handle, @NonNull String name, long c4Db) throws LiteCoreException
- Specified by:
nShareDb
in interfaceC4Listener.NativeImpl
- Throws:
LiteCoreException
-
nUnshareDb
public void nUnshareDb(long handle, long c4Db) throws LiteCoreException
- Specified by:
nUnshareDb
in interfaceC4Listener.NativeImpl
- Throws:
LiteCoreException
-
nGetUrls
@NonNull public List<String> nGetUrls(long handle, long c4Db) throws LiteCoreException
- Specified by:
nGetUrls
in interfaceC4Listener.NativeImpl
- Throws:
LiteCoreException
-
nGetPort
public int nGetPort(long handle)
- Specified by:
nGetPort
in interfaceC4Listener.NativeImpl
-
nGetConnectionStatus
@NonNull public ConnectionStatus nGetConnectionStatus(long handle)
- Specified by:
nGetConnectionStatus
in interfaceC4Listener.NativeImpl
-
nGetUriFromPath
@NonNull public String nGetUriFromPath(@NonNull String path)
- Specified by:
nGetUriFromPath
in interfaceC4Listener.NativeImpl
-
-