Package | Description |
---|---|
com.amazonaws.services.kinesis.leases.impl | |
com.amazonaws.services.kinesis.leases.interfaces |
Modifier and Type | Method and Description |
---|---|
protected DependencyException |
LeaseManager.convertAndRethrowExceptions(String operation,
String leaseKey,
com.amazonaws.AmazonClientException e) |
Modifier and Type | Method and Description |
---|---|
boolean |
LeaseManager.createLeaseIfNotExists(T lease)
Create a new lease.
|
boolean |
LeaseManager.createLeaseTableIfNotExists(Long readCapacity,
Long writeCapacity)
Creates the table that will store leases.
|
void |
LeaseManager.deleteAll()
Delete all leases from DynamoDB.
|
void |
LeaseManager.deleteLease(T lease)
Delete the given lease from DynamoDB.
|
boolean |
LeaseManager.evictLease(T lease)
Evict the current owner of lease by setting owner to null.
|
ExtendedSequenceNumber |
KinesisClientLeaseManager.getCheckpoint(String shardId)
Gets the current checkpoint of the shard.
|
T |
LeaseManager.getLease(String leaseKey) |
void |
LeaseRenewer.initialize()
Bootstrap initial set of leases from the LeaseManager (e.g.
|
boolean |
LeaseManager.leaseTableExists() |
List<T> |
LeaseManager.listLeases()
List all objects in table synchronously.
|
boolean |
LeaseManager.renewLease(T lease)
Renew a lease by incrementing the lease counter.
|
void |
LeaseRenewer.renewLeases()
Attempt to renew all currently held leases.
|
protected void |
LeaseCoordinator.runRenewer()
Runs a single iteration of the lease renewer - used by integration tests.
|
protected void |
LeaseCoordinator.runTaker()
Runs a single iteration of the lease taker - used by integration tests.
|
void |
LeaseCoordinator.start()
Start background LeaseHolder and LeaseTaker threads.
|
boolean |
KinesisClientLeaseManager.takeLease(KinesisClientLease lease,
String newOwner)
Take a lease for the given owner by incrementing its leaseCounter and setting its owner field.
|
boolean |
LeaseManager.takeLease(T lease,
String owner)
Take a lease for the given owner by incrementing its leaseCounter and setting its owner field.
|
Map<String,T> |
LeaseTaker.takeLeases()
Compute the set of leases available to be taken and attempt to take them.
|
boolean |
LeaseManager.updateLease(T lease)
Update application-specific fields of the given lease in DynamoDB.
|
boolean |
LeaseRenewer.updateLease(T lease,
UUID concurrencyToken)
Update application-specific fields in a currently held lease.
|
boolean |
LeaseCoordinator.updateLease(T lease,
UUID concurrencyToken)
Updates application-specific lease values in DynamoDB.
|
boolean |
LeaseManager.waitUntilLeaseTableExists(long secondsBetweenPolls,
long timeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
boolean |
ILeaseManager.createLeaseIfNotExists(T lease)
Create a new lease.
|
boolean |
ILeaseManager.createLeaseTableIfNotExists(Long readCapacity,
Long writeCapacity)
Creates the table that will store leases.
|
void |
ILeaseManager.deleteAll()
Delete all leases from DynamoDB.
|
void |
ILeaseManager.deleteLease(T lease)
Delete the given lease from DynamoDB.
|
boolean |
ILeaseManager.evictLease(T lease)
Evict the current owner of lease by setting owner to null.
|
ExtendedSequenceNumber |
IKinesisClientLeaseManager.getCheckpoint(String shardId)
Gets the current checkpoint of the shard.
|
T |
ILeaseManager.getLease(String shardId) |
void |
ILeaseRenewer.initialize()
Bootstrap initial set of leases from the LeaseManager (e.g.
|
boolean |
ILeaseManager.leaseTableExists() |
List<T> |
ILeaseManager.listLeases()
List all objects in table synchronously.
|
boolean |
ILeaseManager.renewLease(T lease)
Renew a lease by incrementing the lease counter.
|
void |
ILeaseRenewer.renewLeases()
Attempt to renew all currently held leases.
|
boolean |
ILeaseManager.takeLease(T lease,
String owner)
Take a lease for the given owner by incrementing its leaseCounter and setting its owner field.
|
Map<String,T> |
ILeaseTaker.takeLeases()
Compute the set of leases available to be taken and attempt to take them.
|
boolean |
ILeaseManager.updateLease(T lease)
Update application-specific fields of the given lease in DynamoDB.
|
boolean |
ILeaseRenewer.updateLease(T lease,
UUID concurrencyToken)
Update application-specific fields in a currently held lease.
|
boolean |
ILeaseManager.waitUntilLeaseTableExists(long secondsBetweenPolls,
long timeoutSeconds)
Blocks until the lease table exists by polling leaseTableExists.
|
Copyright © 2016. All rights reserved.