URLEndpointListenerConfiguration
@available(macOS 10.12, iOS 10.0, *)
public class URLEndpointListenerConfiguration
ENTERPRISE EDITION ONLY.
The configuration used for configuring and creating a URLEndpointListener.
-
The database object associated with the listener.
Declaration
Swift
public let database: Database
-
The port that the listener will listen to. If default value is zero which means that the listener will automatically select an available port to listen to when the listener is started.
Declaration
Swift
public var port: UInt16? { get set }
-
The network interface in the form of the IP Address or network interface name such as en0 that the listener will listen to. The default value is nil which means that the listener will listen to all network interfaces.
Declaration
Swift
public var networkInterface: String? { get set }
-
Disable TLS communication. The default value is NO which means that the TLS will be enabled by default.
Declaration
Swift
public var disableTLS: Bool { get set }
-
The TLS Identity used for configuring TLS Communication. The default value is nil which means that a generated anonymous self-signed identity will be used unless the disableTLS property is set to YES.
Declaration
Swift
public var tlsIdentity: TLSIdentity? { get set }
-
The authenticator used by the listener to authenticate clients.
Declaration
Swift
public var authenticator: ListenerAuthenticator? { get set }
-
Allow delta sync when replicating with the listener. The default value is NO.
Declaration
Swift
public var enableDeltaSync: Bool { get set }
-
Allow only pull replication to pull changes from the listener. The default value is NO.
Declaration
Swift
public var readOnly: Bool { get set }
-
Initializes a ListenerConfiguration’s builder with the given database
Declaration
Swift
public init(database: Database)
Parameters
database
The local database.
-
Initializes a ListenerConfiguration’s builder with the given configuration object.
Declaration
Swift
public convenience init(config: URLEndpointListenerConfiguration)
Parameters
config
The configuration object.