public class KinesisClientLeaseSerializer extends Object implements ILeaseSerializer<KinesisClientLease>
| Modifier and Type | Field and Description |
|---|---|
String |
CHILD_SHARD_IDS_KEY |
String |
PARENT_SHARD_ID_KEY |
| Constructor and Description |
|---|
KinesisClientLeaseSerializer() |
| Modifier and Type | Method and Description |
|---|---|
KinesisClientLease |
fromDynamoRecord(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> dynamoRecord)
Construct a Lease object out of a DynamoDB record.
|
Collection<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> |
getAttributeDefinitions() |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoEvictLeaseUpdate(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoExistentExpectation(String leaseKey) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
getDynamoHashKey(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
getDynamoHashKey(String shardId)
Special getDynamoHashKey implementation used by ILeaseManager.getLease().
|
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseCheckpointExpectation(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseCounterExpectation(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoLeaseCounterUpdate(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseOwnerExpectation(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoNonexistantExpectation() |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoTakeLeaseUpdate(KinesisClientLease lease,
String newOwner) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(KinesisClientLease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(KinesisClientLease lease,
UpdateField updateField) |
Collection<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> |
getKeySchema() |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
toDynamoRecord(KinesisClientLease lease)
Construct a DynamoDB record out of a Lease object
|
public final String PARENT_SHARD_ID_KEY
public final String CHILD_SHARD_IDS_KEY
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> toDynamoRecord(KinesisClientLease lease)
ILeaseSerializertoDynamoRecord in interface ILeaseSerializer<KinesisClientLease>lease - lease object to serializepublic KinesisClientLease fromDynamoRecord(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> dynamoRecord)
ILeaseSerializerfromDynamoRecord in interface ILeaseSerializer<KinesisClientLease>dynamoRecord - attribute value map from DynamoDBpublic Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getDynamoHashKey(KinesisClientLease lease)
getDynamoHashKey in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getDynamoHashKey(String shardId)
ILeaseSerializergetDynamoHashKey in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseCounterExpectation(KinesisClientLease lease)
getDynamoLeaseCounterExpectation in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseOwnerExpectation(KinesisClientLease lease)
getDynamoLeaseOwnerExpectation in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseCheckpointExpectation(KinesisClientLease lease)
getDynamoLeaseCheckpointExpectation in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoNonexistantExpectation()
getDynamoNonexistantExpectation in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoExistentExpectation(String leaseKey)
getDynamoExistentExpectation in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoLeaseCounterUpdate(KinesisClientLease lease)
getDynamoLeaseCounterUpdate in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoTakeLeaseUpdate(KinesisClientLease lease, String newOwner)
getDynamoTakeLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoEvictLeaseUpdate(KinesisClientLease lease)
getDynamoEvictLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoUpdateLeaseUpdate(KinesisClientLease lease)
getDynamoUpdateLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoUpdateLeaseUpdate(KinesisClientLease lease, UpdateField updateField)
getDynamoUpdateLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public Collection<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> getKeySchema()
getKeySchema in interface ILeaseSerializer<KinesisClientLease>public Collection<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> getAttributeDefinitions()
getAttributeDefinitions in interface ILeaseSerializer<KinesisClientLease>Copyright © 2023. All rights reserved.