@@ -177,7 +177,7 @@ public boolean batchingEnabled() {
177177 * @param batchingEnabled {@code true} to enable batch loading, {@code false} otherwise
178178 * @return a new data loader options instance for fluent coding
179179 */
180- public DataLoaderOptions setBatchingEnabled (boolean batchingEnabled ) {
180+ public DataLoaderOptions withBatchingEnabled (boolean batchingEnabled ) {
181181 return builder ().setBatchingEnabled (batchingEnabled ).build ();
182182 }
183183
@@ -196,7 +196,7 @@ public boolean cachingEnabled() {
196196 * @param cachingEnabled {@code true} to enable caching, {@code false} otherwise
197197 * @return a new data loader options instance for fluent coding
198198 */
199- public DataLoaderOptions setCachingEnabled (boolean cachingEnabled ) {
199+ public DataLoaderOptions withCachingEnabled (boolean cachingEnabled ) {
200200 return builder ().setCachingEnabled (cachingEnabled ).build ();
201201 }
202202
@@ -220,7 +220,7 @@ public boolean cachingExceptionsEnabled() {
220220 * @param cachingExceptionsEnabled {@code true} to enable caching exceptional values, {@code false} otherwise
221221 * @return a new data loader options instance for fluent coding
222222 */
223- public DataLoaderOptions setCachingExceptionsEnabled (boolean cachingExceptionsEnabled ) {
223+ public DataLoaderOptions withCachingExceptionsEnabled (boolean cachingExceptionsEnabled ) {
224224 return builder ().setCachingExceptionsEnabled (cachingExceptionsEnabled ).build ();
225225 }
226226
@@ -241,7 +241,7 @@ public Optional<CacheKey> cacheKeyFunction() {
241241 * @param cacheKeyFunction the cache key function to use
242242 * @return a new data loader options instance for fluent coding
243243 */
244- public DataLoaderOptions setCacheKeyFunction (CacheKey <?> cacheKeyFunction ) {
244+ public DataLoaderOptions withCacheKeyFunction (CacheKey <?> cacheKeyFunction ) {
245245 return builder ().setCacheKeyFunction (cacheKeyFunction ).build ();
246246 }
247247
@@ -262,7 +262,7 @@ public DataLoaderOptions setCacheKeyFunction(CacheKey<?> cacheKeyFunction) {
262262 * @param cacheMap the cache map instance
263263 * @return a new data loader options instance for fluent coding
264264 */
265- public DataLoaderOptions setCacheMap (CacheMap <?, ?> cacheMap ) {
265+ public DataLoaderOptions withCacheMap (CacheMap <?, ?> cacheMap ) {
266266 return builder ().setCacheMap (cacheMap ).build ();
267267 }
268268
@@ -283,7 +283,7 @@ public int maxBatchSize() {
283283 * @param maxBatchSize the maximum batch size
284284 * @return a new data loader options instance for fluent coding
285285 */
286- public DataLoaderOptions setMaxBatchSize (int maxBatchSize ) {
286+ public DataLoaderOptions withMaxBatchSize (int maxBatchSize ) {
287287 return builder ().setMaxBatchSize (maxBatchSize ).build ();
288288 }
289289
@@ -302,7 +302,7 @@ public StatisticsCollector getStatisticsCollector() {
302302 * @param statisticsCollector the statistics collector to use
303303 * @return a new data loader options instance for fluent coding
304304 */
305- public DataLoaderOptions setStatisticsCollector (Supplier <StatisticsCollector > statisticsCollector ) {
305+ public DataLoaderOptions withStatisticsCollector (Supplier <StatisticsCollector > statisticsCollector ) {
306306 return builder ().setStatisticsCollector (nonNull (statisticsCollector )).build ();
307307 }
308308
@@ -319,7 +319,7 @@ public BatchLoaderContextProvider getBatchLoaderContextProvider() {
319319 * @param contextProvider the batch loader context provider
320320 * @return a new data loader options instance for fluent coding
321321 */
322- public DataLoaderOptions setBatchLoaderContextProvider (BatchLoaderContextProvider contextProvider ) {
322+ public DataLoaderOptions withBatchLoaderContextProvider (BatchLoaderContextProvider contextProvider ) {
323323 return builder ().setBatchLoaderContextProvider (nonNull (contextProvider )).build ();
324324 }
325325
@@ -340,7 +340,7 @@ public DataLoaderOptions setBatchLoaderContextProvider(BatchLoaderContextProvide
340340 * @param valueCache the value cache instance
341341 * @return a new data loader options instance for fluent coding
342342 */
343- public DataLoaderOptions setValueCache (ValueCache <?, ?> valueCache ) {
343+ public DataLoaderOptions withValueCache (ValueCache <?, ?> valueCache ) {
344344 return builder ().setValueCache (valueCache ).build ();
345345 }
346346
@@ -357,7 +357,7 @@ public ValueCacheOptions getValueCacheOptions() {
357357 * @param valueCacheOptions the value cache options
358358 * @return a new data loader options instance for fluent coding
359359 */
360- public DataLoaderOptions setValueCacheOptions (ValueCacheOptions valueCacheOptions ) {
360+ public DataLoaderOptions withValueCacheOptions (ValueCacheOptions valueCacheOptions ) {
361361 return builder ().setValueCacheOptions (nonNull (valueCacheOptions )).build ();
362362 }
363363
@@ -375,7 +375,7 @@ public BatchLoaderScheduler getBatchLoaderScheduler() {
375375 * @param batchLoaderScheduler the scheduler
376376 * @return a new data loader options instance for fluent coding
377377 */
378- public DataLoaderOptions setBatchLoaderScheduler (BatchLoaderScheduler batchLoaderScheduler ) {
378+ public DataLoaderOptions withBatchLoaderScheduler (BatchLoaderScheduler batchLoaderScheduler ) {
379379 return builder ().setBatchLoaderScheduler (batchLoaderScheduler ).build ();
380380 }
381381
@@ -392,7 +392,7 @@ public DataLoaderInstrumentation getInstrumentation() {
392392 * @param instrumentation the new {@link DataLoaderInstrumentation}
393393 * @return a new data loader options instance for fluent coding
394394 */
395- public DataLoaderOptions setInstrumentation (DataLoaderInstrumentation instrumentation ) {
395+ public DataLoaderOptions withInstrumentation (DataLoaderInstrumentation instrumentation ) {
396396 return builder ().setInstrumentation (instrumentation ).build ();
397397 }
398398
0 commit comments