T - Lease subclass, possibly Lease itselfpublic interface ILeaseSerializer<T extends Lease>
| Modifier and Type | Method and Description |
|---|---|
T |
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(T lease) |
default Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoExistentExpectation(String leaseKey) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
getDynamoHashKey(String leaseKey)
Special getDynamoHashKey implementation used by ILeaseManager.getLease().
|
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
getDynamoHashKey(T lease) |
default Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseCheckpointExpectation(T lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseCounterExpectation(T lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoLeaseCounterUpdate(T lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoLeaseOwnerExpectation(T lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
getDynamoNonexistantExpectation() |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoTakeLeaseUpdate(T lease,
String newOwner) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(T lease) |
default Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
getDynamoUpdateLeaseUpdate(T lease,
UpdateField updateField) |
Collection<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> |
getKeySchema() |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
toDynamoRecord(T lease)
Construct a DynamoDB record out of a Lease object
|
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> toDynamoRecord(T lease)
lease - lease object to serializeT fromDynamoRecord(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> dynamoRecord)
dynamoRecord - attribute value map from DynamoDBMap<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getDynamoHashKey(T lease)
lease - Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getDynamoHashKey(String leaseKey)
leaseKey - Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseCounterExpectation(T lease)
lease - Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseOwnerExpectation(T lease)
lease - default Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoLeaseCheckpointExpectation(T lease)
lease - Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoNonexistantExpectation()
default Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> getDynamoExistentExpectation(String leaseKey)
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoLeaseCounterUpdate(T lease)
lease - Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoTakeLeaseUpdate(T lease, String newOwner)
lease - newOwner - Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoEvictLeaseUpdate(T lease)
lease - Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoUpdateLeaseUpdate(T lease)
lease - default Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> getDynamoUpdateLeaseUpdate(T lease, UpdateField updateField)
lease - updateField - Collection<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> getKeySchema()
Collection<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> getAttributeDefinitions()
Copyright © 2021. All rights reserved.