PagedList<Employee> pagedList = new PagedList.Builder<>(dataSource, config) .setMainThreadExecutor(new MainThreadExecutor()) .setBackgroundThreadExecutor(Executors.newSingleThreadExecutor()) .setInitialKey(50) .build();
.setInitialKey不影响PageKeyedDataSource。即使传递值10000,PageKeyedDataSource也将调用loadInitial方法。