/** * @param maxCacheByteSize Max byte size for the cache at any given point of time. After this threshold is crossed * the KinesisDataFetcher will be blocked until the cache has more space available. * @return KinesisClientLibConfiguration */ public KinesisClientLibConfiguration withMaxCacheByteSize(final int maxCacheByteSize) { checkIsValuePositive("maxCacheByteSize", maxCacheByteSize); this.recordsFetcherFactory.setMaxByteSize(maxCacheByteSize); return this; }