| Modifier and Type | Method and Description |
|---|---|
boolean |
DynamoDBCheckpointer.setCheckpoint(String shardId,
ExtendedSequenceNumber checkpoint,
UUID concurrencyToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
HierarchicalShardSyncer.checkAndCreateLeaseForNewShards(ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
boolean cleanupLeasesOfCompletedShards,
boolean ignoreUnexpectedChildShards,
MetricsScope scope)
Check and create leases for any new shards (e.g.
|
boolean |
LeaseRefresher.createLeaseIfNotExists(Lease lease)
Create a new lease.
|
boolean |
LeaseRefresher.createLeaseTableIfNotExists(Long readCapacity,
Long writeCapacity)
Creates the table that will store leases.
|
void |
LeaseRefresher.deleteAll()
Delete all leases from DynamoDB.
|
void |
LeaseRefresher.deleteLease(Lease lease)
Delete the given lease from DynamoDB.
|
boolean |
LeaseRefresher.evictLease(Lease lease)
Evict the current owner of lease by setting owner to null.
|
ExtendedSequenceNumber |
LeaseRefresher.getCheckpoint(String shardId)
Gets the current checkpoint of the shard.
|
Lease |
LeaseRefresher.getLease(String shardId) |
void |
LeaseRenewer.initialize()
Bootstrap initial set of leases from the
LeaseRefresher (e.g. |
void |
LeaseCoordinator.initialize()
Initialize the lease coordinator (create the lease table if needed).
|
boolean |
LeaseRefresher.isLeaseTableEmpty()
Check (synchronously) if there are any leases in the lease table.
|
boolean |
LeaseRefresher.leaseTableExists() |
List<Lease> |
LeaseRefresher.listLeases()
List all objects in table synchronously.
|
boolean |
LeaseRefresher.renewLease(Lease lease)
Renew a lease by incrementing the lease counter.
|
void |
LeaseRenewer.renewLeases()
Attempt to renew all currently held leases.
|
void |
LeaseCoordinator.runLeaseRenewer()
Runs a single iteration of the lease renewer - used by integration tests.
|
void |
LeaseCoordinator.runLeaseTaker()
Runs a single iteration of the lease taker - used by integration tests.
|
void |
LeaseCoordinator.start()
Start background LeaseHolder and LeaseTaker threads.
|
boolean |
LeaseRefresher.takeLease(Lease lease,
String owner)
Take a lease for the given owner by incrementing its leaseCounter and setting its owner field.
|
Map<String,Lease> |
LeaseTaker.takeLeases()
Compute the set of leases available to be taken and attempt to take them.
|
boolean |
LeaseRefresher.updateLease(Lease lease)
Update application-specific fields of the given lease in DynamoDB.
|
boolean |
LeaseRenewer.updateLease(Lease lease,
UUID concurrencyToken,
String operation,
String shardId)
Update application-specific fields in a currently held lease.
|
boolean |
LeaseCoordinator.updateLease(Lease lease,
UUID concurrencyToken,
String operation,
String shardId)
Updates application-specific lease values in DynamoDB.
|
boolean |
LeaseRefresher.waitUntilLeaseTableExists(long secondsBetweenPolls,
long timeoutSeconds)
Blocks until the lease table exists by polling leaseTableExists.
|
| Modifier and Type | Method and Description |
|---|---|
protected DependencyException |
DynamoDBLeaseRefresher.convertAndRethrowExceptions(String operation,
String leaseKey,
Exception e) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DynamoDBLeaseRefresher.createLeaseIfNotExists(Lease lease)
Create a new lease.
|
boolean |
DynamoDBLeaseRefresher.createLeaseTableIfNotExists(Long readCapacity,
Long writeCapacity)
Creates the table that will store leases.
|
void |
DynamoDBLeaseRefresher.deleteAll()
Delete all leases from DynamoDB.
|
void |
DynamoDBLeaseRefresher.deleteLease(Lease lease)
Delete the given lease from DynamoDB.
|
boolean |
DynamoDBLeaseRefresher.evictLease(Lease lease)
Evict the current owner of lease by setting owner to null.
|
ExtendedSequenceNumber |
DynamoDBLeaseRefresher.getCheckpoint(String shardId)
Gets the current checkpoint of the shard.
|
Lease |
DynamoDBLeaseRefresher.getLease(String leaseKey) |
void |
DynamoDBLeaseRenewer.initialize()
Bootstrap initial set of leases from the
LeaseRefresher (e.g. |
void |
DynamoDBLeaseCoordinator.initialize() |
boolean |
DynamoDBLeaseRefresher.isLeaseTableEmpty()
Check (synchronously) if there are any leases in the lease table.
|
boolean |
DynamoDBLeaseRefresher.leaseTableExists() |
List<Lease> |
DynamoDBLeaseRefresher.listLeases()
List all objects in table synchronously.
|
boolean |
DynamoDBLeaseRefresher.renewLease(Lease lease)
Renew a lease by incrementing the lease counter.
|
void |
DynamoDBLeaseRenewer.renewLeases()
Attempt to renew all currently held leases.
|
void |
DynamoDBLeaseCoordinator.runLeaseRenewer() |
void |
DynamoDBLeaseCoordinator.runLeaseTaker() |
void |
DynamoDBLeaseCoordinator.start() |
boolean |
DynamoDBLeaseRefresher.takeLease(Lease lease,
String owner)
Take a lease for the given owner by incrementing its leaseCounter and setting its owner field.
|
Map<String,Lease> |
DynamoDBLeaseTaker.takeLeases()
Compute the set of leases available to be taken and attempt to take them.
|
boolean |
DynamoDBLeaseRefresher.updateLease(Lease lease)
Update application-specific fields of the given lease in DynamoDB.
|
boolean |
DynamoDBLeaseRenewer.updateLease(Lease lease,
UUID concurrencyToken,
String operation,
String shardId)
Update application-specific fields in a currently held lease.
|
boolean |
DynamoDBLeaseCoordinator.updateLease(Lease lease,
UUID concurrencyToken,
String operation,
String shardId) |
boolean |
DynamoDBLeaseRefresher.waitUntilLeaseTableExists(long secondsBetweenPolls,
long timeoutSeconds) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ShardSyncer.checkAndCreateLeasesForNewShards(ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
boolean cleanupLeasesOfCompletedShards,
boolean ignoreUnexpectedChildShards,
MetricsScope scope)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ConsumerRegistration.getOrCreateStreamConsumerArn()
This method is used to get or create StreamConsumer information from Kinesis.
|
| Modifier and Type | Method and Description |
|---|---|
String |
FanOutConsumerRegistration.getOrCreateStreamConsumerArn() |
Copyright © 2019. All rights reserved.