Class ReplicatorConfiguration

    • Constructor Detail

      • ReplicatorConfiguration

        @Deprecated
        public ReplicatorConfiguration​(@NonNull
                                       Database database,
                                       @NonNull
                                       Endpoint target)
        Deprecated.
        Use ReplicatorConfiguration(Endpoint)
        Create a Replicator Configuration
        Parameters:
        database - the database to be synchronized
        target - the endpoint with which to synchronize it
      • ReplicatorConfiguration

        public ReplicatorConfiguration​(@NonNull
                                       Endpoint target)
        Create a Replicator Configuration
        Parameters:
        target - the target endpoint
      • ReplicatorConfiguration

        public ReplicatorConfiguration​(@NonNull
                                       ReplicatorConfiguration config)
        Copy a Replicator Configuration
        Parameters:
        config - the config to copy
    • Method Detail

      • setAcceptOnlySelfSignedServerCertificate

        @NonNull
        public ReplicatorConfiguration setAcceptOnlySelfSignedServerCertificate​(boolean selfSignedOnly)
        ENTERPRISE EDITION API

        Specify whether the replicator will accept only self-signed certificates. If set true, the replicator will accept any self-signed but NO not self-signed certificates This guards against using this mode accidentally, in production. The default value is false.

        Parameters:
        selfSignedOnly - Whether the replicator will accept any and only self-signed certificates.
        Returns:
        this.
      • isAcceptOnlySelfSignedServerCertificate

        public boolean isAcceptOnlySelfSignedServerCertificate()
        ENTERPRISE EDITION API

        Return whether the replicator will accept any and only self-signed server certificates.