Class ReplicationDocument.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(ReplicationDatabase source,
                       ReplicationDatabase target)
        Instantiates a new builder with required properties.
        Parameters:
        source - the source
        target - the target
    • Method Detail

      • build

        public ReplicationDocument build()
        Builds a ReplicationDocument.
        Returns:
        the new ReplicationDocument instance
      • addConflicts

        public ReplicationDocument.Builder addConflicts​(String conflicts)
        Adds an conflicts to conflicts.
        Parameters:
        conflicts - the new conflicts
        Returns:
        the ReplicationDocument builder
      • addDeletedConflicts

        public ReplicationDocument.Builder addDeletedConflicts​(String deletedConflicts)
        Adds an deletedConflicts to deletedConflicts.
        Parameters:
        deletedConflicts - the new deletedConflicts
        Returns:
        the ReplicationDocument builder
      • addDocIds

        public ReplicationDocument.Builder addDocIds​(String docIds)
        Adds an docIds to docIds.
        Parameters:
        docIds - the new docIds
        Returns:
        the ReplicationDocument builder
      • conflicts

        public ReplicationDocument.Builder conflicts​(List<String> conflicts)
        Set the conflicts. Existing conflicts will be replaced.
        Parameters:
        conflicts - the conflicts
        Returns:
        the ReplicationDocument builder
      • deletedConflicts

        public ReplicationDocument.Builder deletedConflicts​(List<String> deletedConflicts)
        Set the deletedConflicts. Existing deletedConflicts will be replaced.
        Parameters:
        deletedConflicts - the deletedConflicts
        Returns:
        the ReplicationDocument builder
      • localSeq

        public ReplicationDocument.Builder localSeq​(String localSeq)
        Set the localSeq.
        Parameters:
        localSeq - the localSeq
        Returns:
        the ReplicationDocument builder
      • revisions

        public ReplicationDocument.Builder revisions​(Revisions revisions)
        Set the revisions.
        Parameters:
        revisions - the revisions
        Returns:
        the ReplicationDocument builder
      • checkpointInterval

        public ReplicationDocument.Builder checkpointInterval​(long checkpointInterval)
        Set the checkpointInterval.
        Parameters:
        checkpointInterval - the checkpointInterval
        Returns:
        the ReplicationDocument builder
      • connectionTimeout

        public ReplicationDocument.Builder connectionTimeout​(long connectionTimeout)
        Set the connectionTimeout.
        Parameters:
        connectionTimeout - the connectionTimeout
        Returns:
        the ReplicationDocument builder
      • continuous

        public ReplicationDocument.Builder continuous​(Boolean continuous)
        Set the continuous.
        Parameters:
        continuous - the continuous
        Returns:
        the ReplicationDocument builder
      • createTarget

        public ReplicationDocument.Builder createTarget​(Boolean createTarget)
        Set the createTarget.
        Parameters:
        createTarget - the createTarget
        Returns:
        the ReplicationDocument builder
      • docIds

        public ReplicationDocument.Builder docIds​(List<String> docIds)
        Set the docIds. Existing docIds will be replaced.
        Parameters:
        docIds - the docIds
        Returns:
        the ReplicationDocument builder
      • httpConnections

        public ReplicationDocument.Builder httpConnections​(long httpConnections)
        Set the httpConnections.
        Parameters:
        httpConnections - the httpConnections
        Returns:
        the ReplicationDocument builder
      • retriesPerRequest

        public ReplicationDocument.Builder retriesPerRequest​(long retriesPerRequest)
        Set the retriesPerRequest.
        Parameters:
        retriesPerRequest - the retriesPerRequest
        Returns:
        the ReplicationDocument builder
      • sinceSeq

        public ReplicationDocument.Builder sinceSeq​(String sinceSeq)
        Set the sinceSeq.
        Parameters:
        sinceSeq - the sinceSeq
        Returns:
        the ReplicationDocument builder
      • socketOptions

        public ReplicationDocument.Builder socketOptions​(String socketOptions)
        Set the socketOptions.
        Parameters:
        socketOptions - the socketOptions
        Returns:
        the ReplicationDocument builder
      • sourceProxy

        public ReplicationDocument.Builder sourceProxy​(String sourceProxy)
        Set the sourceProxy.
        Parameters:
        sourceProxy - the sourceProxy
        Returns:
        the ReplicationDocument builder
      • targetProxy

        public ReplicationDocument.Builder targetProxy​(String targetProxy)
        Set the targetProxy.
        Parameters:
        targetProxy - the targetProxy
        Returns:
        the ReplicationDocument builder
      • useCheckpoints

        public ReplicationDocument.Builder useCheckpoints​(Boolean useCheckpoints)
        Set the useCheckpoints.
        Parameters:
        useCheckpoints - the useCheckpoints
        Returns:
        the ReplicationDocument builder
      • workerBatchSize

        public ReplicationDocument.Builder workerBatchSize​(long workerBatchSize)
        Set the workerBatchSize.
        Parameters:
        workerBatchSize - the workerBatchSize
        Returns:
        the ReplicationDocument builder
      • workerProcesses

        public ReplicationDocument.Builder workerProcesses​(long workerProcesses)
        Set the workerProcesses.
        Parameters:
        workerProcesses - the workerProcesses
        Returns:
        the ReplicationDocument builder
      • add

        public ReplicationDocument.Builder add​(String name,
                                               Object value)
        Add an arbitrary property.
        Parameters:
        name - the name of the property to add
        value - the value of the property to add
        Returns:
        the ReplicationDocument builder