public class C4Listener extends C4NativePeer implements Closeable
Modifier and Type | Class and Description |
---|---|
static interface |
C4Listener.NativeImpl
Native Implementation
|
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_MODE_BASIC |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static C4Listener |
createHttpListener(int port,
String iFace,
String dbPath,
ListenerPasswordAuthenticator authenticator,
boolean push,
boolean pull,
boolean deltaSync) |
static C4Listener |
createTlsListenerCertAuth(int port,
String iFace,
String dbPath,
ListenerCertificateAuthenticator authenticator,
boolean push,
boolean pull,
boolean deltaSync,
Certificate serverCert,
C4KeyPair keyPair) |
static C4Listener |
createTlsListenerPasswordAuth(int port,
String iFace,
String dbPath,
ListenerPasswordAuthenticator authenticator,
boolean push,
boolean pull,
boolean deltaSync,
Certificate serverCert,
C4KeyPair keys) |
ConnectionStatus |
getConnectionStatus() |
int |
getPort() |
String |
getUriFromPath(String path) |
List<String> |
getUrls(C4Database db) |
void |
shareDb(String name,
C4Database db) |
void |
unshareDb(C4Database db) |
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
byteValue, shortValue
public static final String AUTH_MODE_BASIC
@NonNull public static C4Listener createHttpListener(int port, @Nullable String iFace, @NonNull String dbPath, @Nullable ListenerPasswordAuthenticator authenticator, boolean push, boolean pull, boolean deltaSync) throws CouchbaseLiteException
CouchbaseLiteException
@NonNull public static C4Listener createTlsListenerPasswordAuth(int port, @Nullable String iFace, @NonNull String dbPath, @Nullable ListenerPasswordAuthenticator authenticator, boolean push, boolean pull, boolean deltaSync, @NonNull Certificate serverCert, @Nullable C4KeyPair keys) throws CouchbaseLiteException
CouchbaseLiteException
@NonNull public static C4Listener createTlsListenerCertAuth(int port, @Nullable String iFace, @NonNull String dbPath, @Nullable ListenerCertificateAuthenticator authenticator, boolean push, boolean pull, boolean deltaSync, @NonNull Certificate serverCert, @Nullable C4KeyPair keyPair) throws CouchbaseLiteException
CouchbaseLiteException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void shareDb(@NonNull String name, @NonNull C4Database db) throws CouchbaseLiteException
CouchbaseLiteException
public void unshareDb(@NonNull C4Database db) throws CouchbaseLiteException
CouchbaseLiteException
@Nullable public List<String> getUrls(@NonNull C4Database db)
public int getPort()
@NonNull public ConnectionStatus getConnectionStatus()