-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PeriodicShardSyncManager Changes Needed for DynamoDBStreamsKinesisAda…
…pter Compatibility (#970) * Interface and Rename for PeriodicShardSyncManager * Removed Automatic Indents * More Auto Indent Fixes
- Loading branch information
Showing
9 changed files
with
459 additions
and
20 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...va/com/amazonaws/services/kinesis/clientlibrary/lib/worker/IPeriodicShardSyncManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.amazonaws.services.kinesis.clientlibrary.lib.worker; | ||
|
||
import com.google.common.annotations.VisibleForTesting; | ||
import lombok.Value; | ||
import lombok.experimental.Accessors; | ||
|
||
public interface IPeriodicShardSyncManager { | ||
|
||
TaskResult start(); | ||
|
||
/** | ||
* Runs ShardSync once, without scheduling further periodic ShardSyncs. | ||
* @return TaskResult from shard sync | ||
*/ | ||
TaskResult syncShardsOnce(); | ||
|
||
void stop(); | ||
|
||
@Value | ||
@Accessors(fluent = true) | ||
@VisibleForTesting | ||
class ShardSyncResponse { | ||
private final boolean shouldDoShardSync; | ||
private final boolean isHoleDetected; | ||
private final String reasonForDecision; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
403 changes: 403 additions & 0 deletions
403
.../amazonaws/services/kinesis/clientlibrary/lib/worker/KinesisPeriodicShardSyncManager.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters