public class ProcessTask extends Object implements ITask
| Constructor and Description |
|---|
ProcessTask(ShardInfo shardInfo,
StreamConfig streamConfig,
IRecordProcessor recordProcessor,
RecordProcessorCheckpointer recordProcessorCheckpointer,
IDataFetcher dataFetcher,
long backoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
GetRecordsCache getRecordsCache) |
ProcessTask(ShardInfo shardInfo,
StreamConfig streamConfig,
IRecordProcessor recordProcessor,
RecordProcessorCheckpointer recordProcessorCheckpointer,
IDataFetcher dataFetcher,
long backoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
com.amazonaws.services.kinesis.clientlibrary.lib.worker.ThrottlingReporter throttlingReporter,
GetRecordsCache getRecordsCache) |
| Modifier and Type | Method and Description |
|---|---|
TaskResult |
call()
Perform task logic.
|
TaskType |
getTaskType() |
public ProcessTask(ShardInfo shardInfo, StreamConfig streamConfig, IRecordProcessor recordProcessor, RecordProcessorCheckpointer recordProcessorCheckpointer, IDataFetcher dataFetcher, long backoffTimeMillis, boolean skipShardSyncAtWorkerInitializationIfLeasesExist, GetRecordsCache getRecordsCache)
shardInfo - contains information about the shardstreamConfig - Stream configurationrecordProcessor - Record processor used to process the data records for the shardrecordProcessorCheckpointer - Passed to the RecordProcessor so it can checkpoint progressdataFetcher - Kinesis data fetcher (used to fetch records from Kinesis)backoffTimeMillis - backoff time when catching exceptionsgetRecordsCache - The retrieval strategy for fetching records from kinesispublic ProcessTask(ShardInfo shardInfo, StreamConfig streamConfig, IRecordProcessor recordProcessor, RecordProcessorCheckpointer recordProcessorCheckpointer, IDataFetcher dataFetcher, long backoffTimeMillis, boolean skipShardSyncAtWorkerInitializationIfLeasesExist, com.amazonaws.services.kinesis.clientlibrary.lib.worker.ThrottlingReporter throttlingReporter, GetRecordsCache getRecordsCache)
shardInfo - contains information about the shardstreamConfig - Stream configurationrecordProcessor - Record processor used to process the data records for the shardrecordProcessorCheckpointer - Passed to the RecordProcessor so it can checkpoint progressdataFetcher - Kinesis data fetcher (used to fetch records from Kinesis)backoffTimeMillis - backoff time when catching exceptionsthrottlingReporter - determines how throttling events should be reported in the log.public TaskResult call()
ITaskcall in interface ITaskcall in interface Callable<TaskResult>public TaskType getTaskType()
getTaskType in interface ITaskCopyright © 2024. All rights reserved.