| Package | Description |
|---|---|
| com.amazonaws.services.kinesis.leases.impl | |
| com.amazonaws.services.kinesis.leases.interfaces |
| Modifier and Type | Class and Description |
|---|---|
class |
LeaseCoordinator<T extends Lease>
LeaseCoordinator abstracts away LeaseTaker and LeaseRenewer from the application code that's using leasing.
|
class |
LeaseManager<T extends Lease>
An implementation of ILeaseManager that uses DynamoDB.
|
class |
LeaseRenewer<T extends Lease>
An implementation of ILeaseRenewer that uses DynamoDB via LeaseManager.
|
class |
LeaseTaker<T extends Lease>
An implementation of ILeaseTaker that uses DynamoDB via LeaseManager.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KinesisClientLease
A Lease subclass containing KinesisClientLibrary related fields for checkpoints.
|
| Modifier and Type | Field and Description |
|---|---|
Class<? extends Lease> |
LeaseSerializer.clazz |
| Modifier and Type | Method and Description |
|---|---|
<T extends Lease> |
Lease.copy()
Returns a deep copy of this object.
|
<T extends Lease> |
KinesisClientLease.copy()
Returns a deep copy of this object.
|
<T extends Lease> |
Lease.update(T other)
Updates this Lease's mutable, application-specific fields based on the passed-in lease object.
|
<T extends Lease> |
KinesisClientLease.update(T other)
Updates this Lease's mutable, application-specific fields based on the passed-in lease object.
|
| Modifier and Type | Method and Description |
|---|---|
Lease |
LeaseSerializer.fromDynamoRecord(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> dynamoRecord) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
LeaseSerializer.getDynamoEvictLeaseUpdate(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
LeaseSerializer.getDynamoHashKey(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
LeaseSerializer.getDynamoLeaseCounterExpectation(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
LeaseSerializer.getDynamoLeaseCounterUpdate(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.ExpectedAttributeValue> |
LeaseSerializer.getDynamoLeaseOwnerExpectation(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
LeaseSerializer.getDynamoTakeLeaseUpdate(Lease lease,
String owner) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> |
LeaseSerializer.getDynamoUpdateLeaseUpdate(Lease lease) |
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
LeaseSerializer.toDynamoRecord(Lease lease) |
| Constructor and Description |
|---|
Lease(Lease lease)
Copy constructor, used by clone().
|
| Constructor and Description |
|---|
LeaseSerializer(Class<? extends Lease> clazz) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ILeaseManager<T extends Lease>
Supports basic CRUD operations for Leases.
|
interface |
ILeaseRenewer<T extends Lease>
ILeaseRenewer objects are used by LeaseCoordinator to renew leases held by the LeaseCoordinator.
|
interface |
ILeaseSerializer<T extends Lease>
Utility class that manages the mapping of Lease objects/operations to records in DynamoDB.
|
interface |
ILeaseTaker<T extends Lease>
ILeaseTaker is used by LeaseCoordinator to take new leases, or leases that other workers fail to renew.
|
Copyright © 2016. All rights reserved.