@@ -55,72 +55,72 @@ const (
55
55
56
56
// The location in the shard from which the KinesisClientLibrary will start fetching records from
57
57
// when the application starts for the first time and there is no checkpoint for the shard.
58
- DEFAULT_INITIAL_POSITION_IN_STREAM = LATEST
58
+ DefaultInitialPositionInStream = LATEST
59
59
60
60
// Fail over time in milliseconds. A worker which does not renew it's lease within this time interval
61
61
// will be regarded as having problems and it's shards will be assigned to other workers.
62
62
// For applications that have a large number of shards, this may be set to a higher number to reduce
63
63
// the number of DynamoDB IOPS required for tracking leases.
64
- DEFAULT_FAILOVER_TIME_MILLIS = 10000
64
+ DefaultFailoverTimeMillis = 10000
65
65
66
66
// Period before the end of lease during which a lease is refreshed by the owner.
67
- DEFAULT_LEASE_REFRESH_PERIOD_MILLIS = 5000
67
+ DefaultLeaseRefreshPeriodMillis = 5000
68
68
69
69
// Max records to fetch from Kinesis in a single GetRecords call.
70
- DEFAULT_MAX_RECORDS = 10000
70
+ DefaultMaxRecords = 10000
71
71
72
72
// The default value for how long the {@link ShardConsumer} should sleep if no records are returned
73
73
// from the call to
74
- DEFAULT_IDLETIME_BETWEEN_READS_MILLIS = 1000
74
+ DefaultIdletimeBetweenReadsMillis = 1000
75
75
76
76
// Don't call processRecords() on the record processor for empty record lists.
77
- DEFAULT_DONT_CALL_PROCESS_RECORDS_FOR_EMPTY_RECORD_LIST = false
77
+ DefaultDontCallProcessRecordsForEmptyRecordList = false
78
78
79
79
// Interval in milliseconds between polling to check for parent shard completion.
80
80
// Polling frequently will take up more DynamoDB IOPS (when there are leases for shards waiting on
81
81
// completion of parent shards).
82
- DEFAULT_PARENT_SHARD_POLL_INTERVAL_MILLIS = 10000
82
+ DefaultParentShardPollIntervalMillis = 10000
83
83
84
84
// Shard sync interval in milliseconds - e.g. wait for this long between shard sync tasks.
85
- DEFAULT_SHARD_SYNC_INTERVAL_MILLIS = 60000
85
+ DefaultShardSyncIntervalMillis = 60000
86
86
87
87
// Cleanup leases upon shards completion (don't wait until they expire in Kinesis).
88
88
// Keeping leases takes some tracking/resources (e.g. they need to be renewed, assigned), so by
89
89
// default we try to delete the ones we don't need any longer.
90
- DEFAULT_CLEANUP_LEASES_UPON_SHARDS_COMPLETION = true
90
+ DefaultCleanupLeasesUponShardsCompletion = true
91
91
92
92
// Backoff time in milliseconds for Amazon Kinesis Client Library tasks (in the event of failures).
93
- DEFAULT_TASK_BACKOFF_TIME_MILLIS = 500
93
+ DefaultTaskBackoffTimeMillis = 500
94
94
95
95
// KCL will validate client provided sequence numbers with a call to Amazon Kinesis before
96
96
// checkpointing for calls to {@link RecordProcessorCheckpointer#checkpoint(String)} by default.
97
- DEFAULT_VALIDATE_SEQUENCE_NUMBER_BEFORE_CHECKPOINTING = true
97
+ DefaultValidateSequenceNumberBeforeCheckpointing = true
98
98
99
99
// The max number of leases (shards) this worker should process.
100
100
// This can be useful to avoid overloading (and thrashing) a worker when a host has resource constraints
101
101
// or during deployment.
102
102
// NOTE: Setting this to a low value can cause data loss if workers are not able to pick up all shards in the
103
103
// stream due to the max limit.
104
- DEFAULT_MAX_LEASES_FOR_WORKER = math .MaxInt16
104
+ DefaultMaxLeasesForWorker = math .MaxInt16
105
105
106
106
// Max leases to steal from another worker at one time (for load balancing).
107
107
// Setting this to a higher number can allow for faster load convergence (e.g. during deployments, cold starts),
108
108
// but can cause higher churn in the system.
109
- DEFAULT_MAX_LEASES_TO_STEAL_AT_ONE_TIME = 1
109
+ DefaultMaxLeasesToStealAtOneTime = 1
110
110
111
111
// The Amazon DynamoDB table used for tracking leases will be provisioned with this read capacity.
112
- DEFAULT_INITIAL_LEASE_TABLE_READ_CAPACITY = 10
112
+ DefaultInitialLeaseTableReadCapacity = 10
113
113
114
114
// The Amazon DynamoDB table used for tracking leases will be provisioned with this write capacity.
115
- DEFAULT_INITIAL_LEASE_TABLE_WRITE_CAPACITY = 10
115
+ DefaultInitialLeaseTableWriteCapacity = 10
116
116
117
117
// The Worker will skip shard sync during initialization if there are one or more leases in the lease table. This
118
118
// assumes that the shards and leases are in-sync. This enables customers to choose faster startup times (e.g.
119
119
// during incremental deployments of an application).
120
- DEFAULT_SKIP_SHARD_SYNC_AT_STARTUP_IF_LEASES_EXIST = false
120
+ DefaultSkipShardSyncAtStartupIfLeasesExist = false
121
121
122
122
// The amount of milliseconds to wait before graceful shutdown forcefully terminates.
123
- DEFAULT_SHUTDOWN_GRACE_MILLIS = 5000
123
+ DefaultShutdownGraceMillis = 5000
124
124
)
125
125
126
126
type (
0 commit comments