public class MigrationState extends CoordinatorState
| Modifier and Type | Class and Description |
|---|---|
static class |
MigrationState.HistoryEntry |
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_VERSION_ATTRIBUTE_NAME
Attribute name in migration state item, whose value is used during
the KCL v3.x migration process to know whether the workers need to
perform KCL v2.x compatible operations or can perform native KCL v3.x
operations.
|
static String |
HISTORY_ATTRIBUTE_NAME |
static String |
MIGRATION_HASH_KEY
Key value for the item in the CoordinatorState table
|
static String |
MODIFIED_BY_ATTRIBUTE_NAME |
static String |
MODIFIED_TIMESTAMP_ATTRIBUTE_NAME |
COORDINATOR_STATE_TABLE_HASH_KEY_ATTRIBUTE_NAME, LEADER_HASH_KEY| Constructor and Description |
|---|
MigrationState(String key,
String modifiedBy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHistoryEntry(ClientVersion lastClientVersion,
String lastModifiedBy,
long lastModifiedTimestamp) |
MigrationState |
copy() |
static MigrationState |
deserialize(String key,
HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes) |
Map<String,software.amazon.awssdk.services.dynamodb.model.ExpectedAttributeValue> |
getDynamoClientVersionExpectation() |
Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValueUpdate> |
getDynamoUpdate() |
HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> |
serialize() |
MigrationState |
update(ClientVersion clientVersion,
String modifiedBy) |
public static final String MIGRATION_HASH_KEY
public static final String CLIENT_VERSION_ATTRIBUTE_NAME
public static final String MODIFIED_BY_ATTRIBUTE_NAME
public static final String MODIFIED_TIMESTAMP_ATTRIBUTE_NAME
public static final String HISTORY_ATTRIBUTE_NAME
public HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> serialize()
public static MigrationState deserialize(String key, HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes)
public Map<String,software.amazon.awssdk.services.dynamodb.model.ExpectedAttributeValue> getDynamoClientVersionExpectation()
public MigrationState copy()
public MigrationState update(ClientVersion clientVersion, String modifiedBy)
public void addHistoryEntry(ClientVersion lastClientVersion, String lastModifiedBy, long lastModifiedTimestamp)
Copyright © 2025. All rights reserved.