@@ -177,7 +177,7 @@ public boolean batchingEnabled() {
177
177
* @param batchingEnabled {@code true} to enable batch loading, {@code false} otherwise
178
178
* @return a new data loader options instance for fluent coding
179
179
*/
180
- public DataLoaderOptions setBatchingEnabled (boolean batchingEnabled ) {
180
+ public DataLoaderOptions withBatchingEnabled (boolean batchingEnabled ) {
181
181
return builder ().setBatchingEnabled (batchingEnabled ).build ();
182
182
}
183
183
@@ -196,7 +196,7 @@ public boolean cachingEnabled() {
196
196
* @param cachingEnabled {@code true} to enable caching, {@code false} otherwise
197
197
* @return a new data loader options instance for fluent coding
198
198
*/
199
- public DataLoaderOptions setCachingEnabled (boolean cachingEnabled ) {
199
+ public DataLoaderOptions withCachingEnabled (boolean cachingEnabled ) {
200
200
return builder ().setCachingEnabled (cachingEnabled ).build ();
201
201
}
202
202
@@ -220,7 +220,7 @@ public boolean cachingExceptionsEnabled() {
220
220
* @param cachingExceptionsEnabled {@code true} to enable caching exceptional values, {@code false} otherwise
221
221
* @return a new data loader options instance for fluent coding
222
222
*/
223
- public DataLoaderOptions setCachingExceptionsEnabled (boolean cachingExceptionsEnabled ) {
223
+ public DataLoaderOptions withCachingExceptionsEnabled (boolean cachingExceptionsEnabled ) {
224
224
return builder ().setCachingExceptionsEnabled (cachingExceptionsEnabled ).build ();
225
225
}
226
226
@@ -241,7 +241,7 @@ public Optional<CacheKey> cacheKeyFunction() {
241
241
* @param cacheKeyFunction the cache key function to use
242
242
* @return a new data loader options instance for fluent coding
243
243
*/
244
- public DataLoaderOptions setCacheKeyFunction (CacheKey <?> cacheKeyFunction ) {
244
+ public DataLoaderOptions withCacheKeyFunction (CacheKey <?> cacheKeyFunction ) {
245
245
return builder ().setCacheKeyFunction (cacheKeyFunction ).build ();
246
246
}
247
247
@@ -262,7 +262,7 @@ public DataLoaderOptions setCacheKeyFunction(CacheKey<?> cacheKeyFunction) {
262
262
* @param cacheMap the cache map instance
263
263
* @return a new data loader options instance for fluent coding
264
264
*/
265
- public DataLoaderOptions setCacheMap (CacheMap <?, ?> cacheMap ) {
265
+ public DataLoaderOptions withCacheMap (CacheMap <?, ?> cacheMap ) {
266
266
return builder ().setCacheMap (cacheMap ).build ();
267
267
}
268
268
@@ -283,7 +283,7 @@ public int maxBatchSize() {
283
283
* @param maxBatchSize the maximum batch size
284
284
* @return a new data loader options instance for fluent coding
285
285
*/
286
- public DataLoaderOptions setMaxBatchSize (int maxBatchSize ) {
286
+ public DataLoaderOptions withMaxBatchSize (int maxBatchSize ) {
287
287
return builder ().setMaxBatchSize (maxBatchSize ).build ();
288
288
}
289
289
@@ -302,7 +302,7 @@ public StatisticsCollector getStatisticsCollector() {
302
302
* @param statisticsCollector the statistics collector to use
303
303
* @return a new data loader options instance for fluent coding
304
304
*/
305
- public DataLoaderOptions setStatisticsCollector (Supplier <StatisticsCollector > statisticsCollector ) {
305
+ public DataLoaderOptions withStatisticsCollector (Supplier <StatisticsCollector > statisticsCollector ) {
306
306
return builder ().setStatisticsCollector (nonNull (statisticsCollector )).build ();
307
307
}
308
308
@@ -319,7 +319,7 @@ public BatchLoaderContextProvider getBatchLoaderContextProvider() {
319
319
* @param contextProvider the batch loader context provider
320
320
* @return a new data loader options instance for fluent coding
321
321
*/
322
- public DataLoaderOptions setBatchLoaderContextProvider (BatchLoaderContextProvider contextProvider ) {
322
+ public DataLoaderOptions withBatchLoaderContextProvider (BatchLoaderContextProvider contextProvider ) {
323
323
return builder ().setBatchLoaderContextProvider (nonNull (contextProvider )).build ();
324
324
}
325
325
@@ -340,7 +340,7 @@ public DataLoaderOptions setBatchLoaderContextProvider(BatchLoaderContextProvide
340
340
* @param valueCache the value cache instance
341
341
* @return a new data loader options instance for fluent coding
342
342
*/
343
- public DataLoaderOptions setValueCache (ValueCache <?, ?> valueCache ) {
343
+ public DataLoaderOptions withValueCache (ValueCache <?, ?> valueCache ) {
344
344
return builder ().setValueCache (valueCache ).build ();
345
345
}
346
346
@@ -357,7 +357,7 @@ public ValueCacheOptions getValueCacheOptions() {
357
357
* @param valueCacheOptions the value cache options
358
358
* @return a new data loader options instance for fluent coding
359
359
*/
360
- public DataLoaderOptions setValueCacheOptions (ValueCacheOptions valueCacheOptions ) {
360
+ public DataLoaderOptions withValueCacheOptions (ValueCacheOptions valueCacheOptions ) {
361
361
return builder ().setValueCacheOptions (nonNull (valueCacheOptions )).build ();
362
362
}
363
363
@@ -375,7 +375,7 @@ public BatchLoaderScheduler getBatchLoaderScheduler() {
375
375
* @param batchLoaderScheduler the scheduler
376
376
* @return a new data loader options instance for fluent coding
377
377
*/
378
- public DataLoaderOptions setBatchLoaderScheduler (BatchLoaderScheduler batchLoaderScheduler ) {
378
+ public DataLoaderOptions withBatchLoaderScheduler (BatchLoaderScheduler batchLoaderScheduler ) {
379
379
return builder ().setBatchLoaderScheduler (batchLoaderScheduler ).build ();
380
380
}
381
381
@@ -392,7 +392,7 @@ public DataLoaderInstrumentation getInstrumentation() {
392
392
* @param instrumentation the new {@link DataLoaderInstrumentation}
393
393
* @return a new data loader options instance for fluent coding
394
394
*/
395
- public DataLoaderOptions setInstrumentation (DataLoaderInstrumentation instrumentation ) {
395
+ public DataLoaderOptions withInstrumentation (DataLoaderInstrumentation instrumentation ) {
396
396
return builder ().setInstrumentation (instrumentation ).build ();
397
397
}
398
398
0 commit comments