public static interface SyncConfig.Builder extends SdkPojo, CopyableBuilder<SyncConfig.Builder,SyncConfig>
| Modifier and Type | Method and Description |
|---|---|
SyncConfig.Builder |
conflictDetection(ConflictDetectionType conflictDetection)
The Conflict Detection strategy to use.
|
SyncConfig.Builder |
conflictDetection(String conflictDetection)
The Conflict Detection strategy to use.
|
SyncConfig.Builder |
conflictHandler(ConflictHandlerType conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
|
SyncConfig.Builder |
conflictHandler(String conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
|
default SyncConfig.Builder |
lambdaConflictHandlerConfig(Consumer<LambdaConflictHandlerConfig.Builder> lambdaConflictHandlerConfig)
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
SyncConfig.Builder |
lambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSyncConfig.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.
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.
ConflictHandlerType,
ConflictHandlerTypeSyncConfig.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.
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.
ConflictHandlerType,
ConflictHandlerTypeSyncConfig.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.
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.
ConflictDetectionType,
ConflictDetectionTypeSyncConfig.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.
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.
ConflictDetectionType,
ConflictDetectionTypeSyncConfig.Builder lambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
lambdaConflictHandlerConfig - The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict
Handler.default SyncConfig.Builder lambdaConflictHandlerConfig(Consumer<LambdaConflictHandlerConfig.Builder> lambdaConflictHandlerConfig)
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
LambdaConflictHandlerConfig.Builder
avoiding the need to create one manually via LambdaConflictHandlerConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to lambdaConflictHandlerConfig(LambdaConflictHandlerConfig).
lambdaConflictHandlerConfig - a consumer that will call methods on LambdaConflictHandlerConfig.BuilderlambdaConflictHandlerConfig(LambdaConflictHandlerConfig)Copyright © 2023. All rights reserved.