Interface SyncConfig.Builder

    • Method Detail

      • conflictHandler

        SyncConfig.Builder conflictHandler​(String conflictHandler)

        The Conflict Resolution strategy to perform in the event of a conflict.

        • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.

        • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

        • LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.

        Parameters:
        conflictHandler - The Conflict Resolution strategy to perform in the event of a conflict.

        • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.

        • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

        • LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConflictHandlerType, ConflictHandlerType
      • conflictHandler

        SyncConfig.Builder conflictHandler​(ConflictHandlerType conflictHandler)

        The Conflict Resolution strategy to perform in the event of a conflict.

        • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.

        • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

        • LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.

        Parameters:
        conflictHandler - The Conflict Resolution strategy to perform in the event of a conflict.

        • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.

        • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

        • LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConflictHandlerType, ConflictHandlerType
      • conflictDetection

        SyncConfig.Builder conflictDetection​(String conflictDetection)

        The Conflict Detection strategy to use.

        • VERSION: Detect conflicts based on object versions for this resolver.

        • NONE: Do not detect conflicts when invoking this resolver.

        Parameters:
        conflictDetection - The Conflict Detection strategy to use.

        • VERSION: Detect conflicts based on object versions for this resolver.

        • NONE: Do not detect conflicts when invoking this resolver.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConflictDetectionType, ConflictDetectionType
      • conflictDetection

        SyncConfig.Builder conflictDetection​(ConflictDetectionType conflictDetection)

        The Conflict Detection strategy to use.

        • VERSION: Detect conflicts based on object versions for this resolver.

        • NONE: Do not detect conflicts when invoking this resolver.

        Parameters:
        conflictDetection - The Conflict Detection strategy to use.

        • VERSION: Detect conflicts based on object versions for this resolver.

        • NONE: Do not detect conflicts when invoking this resolver.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConflictDetectionType, ConflictDetectionType
      • lambdaConflictHandlerConfig

        SyncConfig.Builder lambdaConflictHandlerConfig​(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)

        The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

        Parameters:
        lambdaConflictHandlerConfig - The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
        Returns:
        Returns a reference to this object so that method calls can be chained together.