public class KinesisClientLeaseSerializer extends java.lang.Object implements ILeaseSerializer<KinesisClientLease>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
PARENT_SHARD_ID_KEY |
| Constructor and Description |
|---|
KinesisClientLeaseSerializer() |
| Modifier and Type | Method and Description |
|---|---|
KinesisClientLease |
fromDynamoRecord(java.util.Map<java.lang.String,AttributeValue> dynamoRecord)
Construct a Lease object out of a DynamoDB record.
|
java.util.Collection<AttributeDefinition> |
getAttributeDefinitions() |
java.util.Map<java.lang.String,AttributeValueUpdate> |
getDynamoEvictLeaseUpdate(KinesisClientLease lease) |
java.util.Map<java.lang.String,AttributeValue> |
getDynamoHashKey(KinesisClientLease lease) |
java.util.Map<java.lang.String,AttributeValue> |
getDynamoHashKey(java.lang.String shardId)
Special getDynamoHashKey implementation used by ILeaseManager.getLease().
|
java.util.Map<java.lang.String,ExpectedAttributeValue> |
getDynamoLeaseCounterExpectation(KinesisClientLease lease) |
java.util.Map<java.lang.String,AttributeValueUpdate> |
getDynamoLeaseCounterUpdate(KinesisClientLease lease) |
java.util.Map<java.lang.String,ExpectedAttributeValue> |
getDynamoLeaseOwnerExpectation(KinesisClientLease lease) |
java.util.Map<java.lang.String,ExpectedAttributeValue> |
getDynamoNonexistantExpectation() |
java.util.Map<java.lang.String,AttributeValueUpdate> |
getDynamoTakeLeaseUpdate(KinesisClientLease lease,
java.lang.String newOwner) |
java.util.Map<java.lang.String,AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(KinesisClientLease lease) |
java.util.Collection<KeySchemaElement> |
getKeySchema() |
java.util.Map<java.lang.String,AttributeValue> |
toDynamoRecord(KinesisClientLease lease)
Construct a DynamoDB record out of a Lease object
|
public final java.lang.String PARENT_SHARD_ID_KEY
public java.util.Map<java.lang.String,AttributeValue> toDynamoRecord(KinesisClientLease lease)
ILeaseSerializertoDynamoRecord in interface ILeaseSerializer<KinesisClientLease>lease - lease object to serializepublic KinesisClientLease fromDynamoRecord(java.util.Map<java.lang.String,AttributeValue> dynamoRecord)
ILeaseSerializerfromDynamoRecord in interface ILeaseSerializer<KinesisClientLease>dynamoRecord - attribute value map from DynamoDBpublic java.util.Map<java.lang.String,AttributeValue> getDynamoHashKey(KinesisClientLease lease)
getDynamoHashKey in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,AttributeValue> getDynamoHashKey(java.lang.String shardId)
ILeaseSerializergetDynamoHashKey in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,ExpectedAttributeValue> getDynamoLeaseCounterExpectation(KinesisClientLease lease)
getDynamoLeaseCounterExpectation in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,ExpectedAttributeValue> getDynamoLeaseOwnerExpectation(KinesisClientLease lease)
getDynamoLeaseOwnerExpectation in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,ExpectedAttributeValue> getDynamoNonexistantExpectation()
getDynamoNonexistantExpectation in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,AttributeValueUpdate> getDynamoLeaseCounterUpdate(KinesisClientLease lease)
getDynamoLeaseCounterUpdate in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,AttributeValueUpdate> getDynamoTakeLeaseUpdate(KinesisClientLease lease, java.lang.String newOwner)
getDynamoTakeLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,AttributeValueUpdate> getDynamoEvictLeaseUpdate(KinesisClientLease lease)
getDynamoEvictLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public java.util.Map<java.lang.String,AttributeValueUpdate> getDynamoUpdateLeaseUpdate(KinesisClientLease lease)
getDynamoUpdateLeaseUpdate in interface ILeaseSerializer<KinesisClientLease>public java.util.Collection<KeySchemaElement> getKeySchema()
getKeySchema in interface ILeaseSerializer<KinesisClientLease>public java.util.Collection<AttributeDefinition> getAttributeDefinitions()
getAttributeDefinitions in interface ILeaseSerializer<KinesisClientLease>