Refactoring

This commit is contained in:
M66B 2020-07-08 14:29:39 +02:00
parent b7dba612ba
commit 47fec86144
1 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
private State state; private State state;
private static final int SEARCH_LIMIT = 1000; private static final int SEARCH_LIMIT_DEVICE = 1000;
private static final int SEARCH_LIMIT_SERVER = 100; private static final int SEARCH_LIMIT_SERVER = 100;
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "boundary"); private static ExecutorService executor = Helper.getBackgroundExecutor(1, "boundary");
@ -252,14 +252,14 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
criteria.with_size, criteria.with_size,
criteria.after, criteria.after,
criteria.before, criteria.before,
SEARCH_LIMIT, state.offset); SEARCH_LIMIT_DEVICE, state.offset);
EntityLog.log(context, "Boundary device" + EntityLog.log(context, "Boundary device" +
" account=" + account + " account=" + account +
" folder=" + folder + " folder=" + folder +
" criteria=" + criteria + " criteria=" + criteria +
" offset=" + state.offset + " offset=" + state.offset +
" size=" + state.matches.size()); " size=" + state.matches.size());
state.offset += Math.min(state.matches.size(), SEARCH_LIMIT); state.offset += Math.min(state.matches.size(), SEARCH_LIMIT_DEVICE);
state.index = 0; state.index = 0;
} }