public class DynamoDBLeaseManagementFactory extends Object implements LeaseManagementFactory
| Constructor and Description |
|---|
DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
String streamName,
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient,
String tableName,
String workerIdentifier,
ExecutorService executorService,
InitialPositionInStreamExtended initialPositionInStream,
long failoverTimeMillis,
long epsilonMillis,
int maxLeasesForWorker,
int maxLeasesToStealAtOneTime,
int maxLeaseRenewalThreads,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
long shardSyncIntervalMillis,
boolean consistentReads,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
int maxCacheMissesBeforeReload,
long listShardsCacheAllowedAgeInSeconds,
int cacheMissWarningModulus)
Deprecated.
|
DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
String streamName,
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient,
String tableName,
String workerIdentifier,
ExecutorService executorService,
InitialPositionInStreamExtended initialPositionInStream,
long failoverTimeMillis,
long epsilonMillis,
int maxLeasesForWorker,
int maxLeasesToStealAtOneTime,
int maxLeaseRenewalThreads,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
long shardSyncIntervalMillis,
boolean consistentReads,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
int maxCacheMissesBeforeReload,
long listShardsCacheAllowedAgeInSeconds,
int cacheMissWarningModulus,
long initialLeaseTableReadCapacity,
long initialLeaseTableWriteCapacity)
Deprecated.
|
DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
String streamName,
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient,
String tableName,
String workerIdentifier,
ExecutorService executorService,
InitialPositionInStreamExtended initialPositionInStream,
long failoverTimeMillis,
long epsilonMillis,
int maxLeasesForWorker,
int maxLeasesToStealAtOneTime,
int maxLeaseRenewalThreads,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
long shardSyncIntervalMillis,
boolean consistentReads,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
int maxCacheMissesBeforeReload,
long listShardsCacheAllowedAgeInSeconds,
int cacheMissWarningModulus,
long initialLeaseTableReadCapacity,
long initialLeaseTableWriteCapacity,
HierarchicalShardSyncer hierarchicalShardSyncer,
TableCreatorCallback tableCreatorCallback)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LeaseCoordinator |
createLeaseCoordinator(MetricsFactory metricsFactory) |
DynamoDBLeaseRefresher |
createLeaseRefresher() |
ShardDetector |
createShardDetector() |
ShardSyncTaskManager |
createShardSyncTaskManager(MetricsFactory metricsFactory) |
@Deprecated public DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient, String streamName, software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient, String tableName, String workerIdentifier, ExecutorService executorService, InitialPositionInStreamExtended initialPositionInStream, long failoverTimeMillis, long epsilonMillis, int maxLeasesForWorker, int maxLeasesToStealAtOneTime, int maxLeaseRenewalThreads, boolean cleanupLeasesUponShardCompletion, boolean ignoreUnexpectedChildShards, long shardSyncIntervalMillis, boolean consistentReads, long listShardsBackoffTimeMillis, int maxListShardsRetryAttempts, int maxCacheMissesBeforeReload, long listShardsCacheAllowedAgeInSeconds, int cacheMissWarningModulus)
NOTE: This constructor is deprecated and will be removed in a future release.
kinesisClient - streamName - dynamoDBClient - tableName - workerIdentifier - executorService - initialPositionInStream - failoverTimeMillis - epsilonMillis - maxLeasesForWorker - maxLeasesToStealAtOneTime - maxLeaseRenewalThreads - cleanupLeasesUponShardCompletion - ignoreUnexpectedChildShards - shardSyncIntervalMillis - consistentReads - listShardsBackoffTimeMillis - maxListShardsRetryAttempts - maxCacheMissesBeforeReload - listShardsCacheAllowedAgeInSeconds - cacheMissWarningModulus - @Deprecated public DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient, String streamName, software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient, String tableName, String workerIdentifier, ExecutorService executorService, InitialPositionInStreamExtended initialPositionInStream, long failoverTimeMillis, long epsilonMillis, int maxLeasesForWorker, int maxLeasesToStealAtOneTime, int maxLeaseRenewalThreads, boolean cleanupLeasesUponShardCompletion, boolean ignoreUnexpectedChildShards, long shardSyncIntervalMillis, boolean consistentReads, long listShardsBackoffTimeMillis, int maxListShardsRetryAttempts, int maxCacheMissesBeforeReload, long listShardsCacheAllowedAgeInSeconds, int cacheMissWarningModulus, long initialLeaseTableReadCapacity, long initialLeaseTableWriteCapacity)
NOTE: This constructor is deprecated and will be removed in a future release.
kinesisClient - streamName - dynamoDBClient - tableName - workerIdentifier - executorService - initialPositionInStream - failoverTimeMillis - epsilonMillis - maxLeasesForWorker - maxLeasesToStealAtOneTime - maxLeaseRenewalThreads - cleanupLeasesUponShardCompletion - ignoreUnexpectedChildShards - shardSyncIntervalMillis - consistentReads - listShardsBackoffTimeMillis - maxListShardsRetryAttempts - maxCacheMissesBeforeReload - listShardsCacheAllowedAgeInSeconds - cacheMissWarningModulus - initialLeaseTableReadCapacity - initialLeaseTableWriteCapacity - public DynamoDBLeaseManagementFactory(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
String streamName,
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDBClient,
String tableName,
String workerIdentifier,
ExecutorService executorService,
InitialPositionInStreamExtended initialPositionInStream,
long failoverTimeMillis,
long epsilonMillis,
int maxLeasesForWorker,
int maxLeasesToStealAtOneTime,
int maxLeaseRenewalThreads,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
long shardSyncIntervalMillis,
boolean consistentReads,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
int maxCacheMissesBeforeReload,
long listShardsCacheAllowedAgeInSeconds,
int cacheMissWarningModulus,
long initialLeaseTableReadCapacity,
long initialLeaseTableWriteCapacity,
HierarchicalShardSyncer hierarchicalShardSyncer,
TableCreatorCallback tableCreatorCallback)
kinesisClient - streamName - dynamoDBClient - tableName - workerIdentifier - executorService - initialPositionInStream - failoverTimeMillis - epsilonMillis - maxLeasesForWorker - maxLeasesToStealAtOneTime - maxLeaseRenewalThreads - cleanupLeasesUponShardCompletion - ignoreUnexpectedChildShards - shardSyncIntervalMillis - consistentReads - listShardsBackoffTimeMillis - maxListShardsRetryAttempts - maxCacheMissesBeforeReload - listShardsCacheAllowedAgeInSeconds - cacheMissWarningModulus - initialLeaseTableReadCapacity - initialLeaseTableWriteCapacity - hierarchicalShardSyncer - tableCreatorCallback - public LeaseCoordinator createLeaseCoordinator(@NonNull MetricsFactory metricsFactory)
createLeaseCoordinator in interface LeaseManagementFactorypublic ShardSyncTaskManager createShardSyncTaskManager(@NonNull MetricsFactory metricsFactory)
createShardSyncTaskManager in interface LeaseManagementFactorypublic DynamoDBLeaseRefresher createLeaseRefresher()
createLeaseRefresher in interface LeaseManagementFactorypublic ShardDetector createShardDetector()
createShardDetector in interface LeaseManagementFactoryCopyright © 2019. All rights reserved.