T - Lease subclass, possibly Lease itselfpublic interface ILeaseSerializer<T extends Lease>
| Modifier and Type | Method and Description |
|---|---|
T |
fromDynamoRecord(Map<String,AttributeValue> dynamoRecord)
Construct a Lease object out of a DynamoDB record.
|
Collection<AttributeDefinition> |
getAttributeDefinitions() |
Map<String,AttributeValueUpdate> |
getDynamoEvictLeaseUpdate(T lease) |
Map<String,AttributeValue> |
getDynamoHashKey(String leaseKey)
Special getDynamoHashKey implementation used by ILeaseManager.getLease().
|
Map<String,AttributeValue> |
getDynamoHashKey(T lease) |
Map<String,ExpectedAttributeValue> |
getDynamoLeaseCounterExpectation(T lease) |
Map<String,AttributeValueUpdate> |
getDynamoLeaseCounterUpdate(T lease) |
Map<String,ExpectedAttributeValue> |
getDynamoLeaseOwnerExpectation(T lease) |
Map<String,ExpectedAttributeValue> |
getDynamoNonexistantExpectation() |
Map<String,AttributeValueUpdate> |
getDynamoTakeLeaseUpdate(T lease,
String newOwner) |
Map<String,AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(T lease) |
Collection<KeySchemaElement> |
getKeySchema() |
Map<String,AttributeValue> |
toDynamoRecord(T lease)
Construct a DynamoDB record out of a Lease object
|
Map<String,AttributeValue> toDynamoRecord(T lease)
lease - lease object to serializeT fromDynamoRecord(Map<String,AttributeValue> dynamoRecord)
dynamoRecord - attribute value map from DynamoDBMap<String,AttributeValue> getDynamoHashKey(T lease)
lease - Map<String,AttributeValue> getDynamoHashKey(String leaseKey)
leaseKey - Map<String,ExpectedAttributeValue> getDynamoLeaseCounterExpectation(T lease)
lease - Map<String,ExpectedAttributeValue> getDynamoLeaseOwnerExpectation(T lease)
lease - Map<String,ExpectedAttributeValue> getDynamoNonexistantExpectation()
Map<String,AttributeValueUpdate> getDynamoLeaseCounterUpdate(T lease)
lease - Map<String,AttributeValueUpdate> getDynamoTakeLeaseUpdate(T lease, String newOwner)
lease - newOwner - Map<String,AttributeValueUpdate> getDynamoEvictLeaseUpdate(T lease)
lease - Map<String,AttributeValueUpdate> getDynamoUpdateLeaseUpdate(T lease)
lease - Collection<KeySchemaElement> getKeySchema()
Collection<AttributeDefinition> getAttributeDefinitions()