Fixing factory in leasemanagementconfig.
This commit is contained in:
parent
dbbc306fef
commit
dffe9194f2
1 changed files with 5 additions and 5 deletions
|
|
@ -183,11 +183,11 @@ public class LeaseManagementConfig {
|
|||
|
||||
public LeaseManagementFactory leaseManagementFactory() {
|
||||
if (leaseManagementFactory == null) {
|
||||
new DynamoDBLeaseManagementFactory(workerIdentifier(), failoverTimeMillis(), EPSILON_MS,
|
||||
maxLeasesForWorker(), maxLeasesToStealAtOneTime(), maxLeaseRenewalThreads(), kinesisProxy(),
|
||||
initialPositionInStream(), cleanupLeasesUponShardCompletion(), ignoreUnexpectedChildShards(),
|
||||
shardSyncIntervalMillis(), metricsFactory(), executorService(), tableName(), amazonDynamoDB(),
|
||||
consistentReads());
|
||||
leaseManagementFactory = new DynamoDBLeaseManagementFactory(workerIdentifier(), failoverTimeMillis(),
|
||||
EPSILON_MS, maxLeasesForWorker(), maxLeasesToStealAtOneTime(), maxLeaseRenewalThreads(),
|
||||
kinesisProxy(), initialPositionInStream(), cleanupLeasesUponShardCompletion(),
|
||||
ignoreUnexpectedChildShards(), shardSyncIntervalMillis(), metricsFactory(), executorService(),
|
||||
tableName(), amazonDynamoDB(), consistentReads());
|
||||
}
|
||||
return leaseManagementFactory;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue