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)
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,
Duration dynamoDbRequestTimeout)
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
- @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, 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 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, Duration dynamoDbRequestTimeout)
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
- dynamoDbRequestTimeout
- public LeaseCoordinator createLeaseCoordinator(@NonNull MetricsFactory metricsFactory)
createLeaseCoordinator
in interface LeaseManagementFactory
public ShardSyncTaskManager createShardSyncTaskManager(@NonNull MetricsFactory metricsFactory)
createShardSyncTaskManager
in interface LeaseManagementFactory
public DynamoDBLeaseRefresher createLeaseRefresher()
createLeaseRefresher
in interface LeaseManagementFactory
public ShardDetector createShardDetector()
createShardDetector
in interface LeaseManagementFactory
Copyright © 2019. All rights reserved.