I am trying to control number of records fetched in processRecords method of KCL, here is my KCL configuration
new KinesisClientLibConfiguration(
config.getApplicationName(), config.getStreamName(), awsCredentialsProvider, workerId)
.withInitialPositionInStream(InitialPositionInStream.LATEST)
.withRegionName(config.getRegion())
.withMaxRecords(config.getMaxRecords())
My config.getMaxRecords() is set to 500 but i am still getting ~1000-1500 records in processRecords method, i want strict upper limit as 500 since my downstream process can not handle more than that.