URLEndpointListenerConfiguration

ENTERPRISE EDITION API

Configuration information for a URL endpoint listener. There are two varieties: Http and Tls.

actual class URLEndpointListenerConfiguration : DelegatedClass<<Error class: unknown class>> (source)

Constructors

Link copied to clipboard
expect constructor(database: Database, networkInterface: String? = null, port: Int = Defaults.Listener.PORT, disableTls: Boolean = Defaults.Listener.DISABLE_TLS, identity: TLSIdentity? = null, authenticator: ListenerAuthenticator? = null, readOnly: Boolean = Defaults.Listener.READ_ONLY, enableDeltaSync: Boolean = Defaults.Listener.ENABLE_DELTA_SYNC)

Create a listener configuration, for the specified database, with default values.

expect constructor(collections: Set<Collection>, networkInterface: String? = null, port: Int = Defaults.Listener.PORT, disableTls: Boolean = Defaults.Listener.DISABLE_TLS, identity: TLSIdentity? = null, authenticator: ListenerAuthenticator? = null, readOnly: Boolean = Defaults.Listener.READ_ONLY, enableDeltaSync: Boolean = Defaults.Listener.ENABLE_DELTA_SYNC)

Create a URLEndpointListenerConfiguration with the passed properties. The set of passed Collections must contain at least one collection and all of the collections it contains must belong to the same scope and the same database, otherwise an InvalidArgumentException will be thrown. If one of the specified collections is deleted during replication, connected clients will be closed with an error.

expect constructor(config: URLEndpointListenerConfiguration)

Clone the passed listener configuration.

actual constructor(database: Database, networkInterface: String?, port: Int, disableTls: Boolean, identity: TLSIdentity?, authenticator: ListenerAuthenticator?, readOnly: Boolean, enableDeltaSync: Boolean)
actual constructor(collections: Set<Collection>, networkInterface: String?, port: Int, disableTls: Boolean, identity: TLSIdentity?, authenticator: ListenerAuthenticator?, readOnly: Boolean, enableDeltaSync: Boolean)
actual constructor(config: URLEndpointListenerConfiguration)
actual constructor(database: Database, networkInterface: String?, port: Int, disableTls: Boolean, identity: TLSIdentity?, authenticator: ListenerAuthenticator?, readOnly: Boolean, enableDeltaSync: Boolean)
actual constructor(collections: Set<Collection>, networkInterface: String?, port: Int, disableTls: Boolean, identity: TLSIdentity?, authenticator: ListenerAuthenticator?, readOnly: Boolean, enableDeltaSync: Boolean)
actual constructor(config: URLEndpointListenerConfiguration)

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard

When TLS is enabled, a null authenticator (the default) will allow clients whose certificate chains can be verified by one of the OS-bundled root certificates. There are two types of TLS authenticators. See ListenerCertificateAuthenticator

Link copied to clipboard

Get the configured collections.

Link copied to clipboard
expect val database: Database

The configured database.

actual val database: Database
actual val database: Database
Link copied to clipboard

Is delta sync enabled.

Link copied to clipboard
expect var isReadOnly: Boolean

Is connection read-only.

actual var isReadOnly: Boolean
actual var isReadOnly: Boolean
Link copied to clipboard

If this configuration will disable TLS in its associated listener.

Link copied to clipboard

The name of the configured network interface on which to configure the listener (e.g. "en0")

Link copied to clipboard
expect var port: Int?

The port number on which to configure the listener (between 0 and 65535, inclusive).

actual var port: Int?
actual var port: Int?
Link copied to clipboard

The TLS identity with the certificates and keys for the associated listener.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun URLEndpointListenerConfiguration?.newConfig(database: Database? = null, networkInterface: String? = null, port: Int? = null, disableTls: Boolean? = null, identity: TLSIdentity? = null, authenticator: ListenerAuthenticator? = null, readOnly: Boolean? = null, enableDeltaSync: Boolean? = null): URLEndpointListenerConfiguration
fun URLEndpointListenerConfiguration?.newConfig(collections: Set<Collection>? = null, networkInterface: String? = null, port: Int? = null, disableTls: Boolean? = null, identity: TLSIdentity? = null, authenticator: ListenerAuthenticator? = null, readOnly: Boolean? = null, enableDeltaSync: Boolean? = null): URLEndpointListenerConfiguration

ENTERPRISE EDITION API

Link copied to clipboard
open override fun toString(): String