Added BriefMe for task list metadata, bump default batch size

pull/14/head
Sam Bosley 12 years ago
parent c4ac71c743
commit a2f4a24ac0

@ -183,7 +183,7 @@ public class ActFmSyncThread {
@SuppressWarnings("nls") @SuppressWarnings("nls")
private void sync() { private void sync() {
try { try {
int batchSize = 3; int batchSize = 4;
List<ClientToServerMessage<?>> messageBatch = new LinkedList<ClientToServerMessage<?>>(); List<ClientToServerMessage<?>> messageBatch = new LinkedList<ClientToServerMessage<?>>();
while(true) { while(true) {
synchronized(monitor) { synchronized(monitor) {
@ -202,10 +202,11 @@ public class ActFmSyncThread {
boolean refreshAfterBatch = false; boolean refreshAfterBatch = false;
if (timeForBackgroundSync()) { if (timeForBackgroundSync()) {
repopulateQueueFromOutstandingTables();
enqueueMessage(BriefMe.instantiateBriefMeForClass(TaskListMetadata.class, NameMaps.PUSHED_AT_TASK_LIST_METADATA), null);
enqueueMessage(BriefMe.instantiateBriefMeForClass(Task.class, NameMaps.PUSHED_AT_TASKS), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(Task.class, NameMaps.PUSHED_AT_TASKS), null);
enqueueMessage(BriefMe.instantiateBriefMeForClass(TagData.class, NameMaps.PUSHED_AT_TAGS), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(TagData.class, NameMaps.PUSHED_AT_TAGS), null);
enqueueMessage(BriefMe.instantiateBriefMeForClass(User.class, NameMaps.PUSHED_AT_USERS), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(User.class, NameMaps.PUSHED_AT_USERS), null);
repopulateQueueFromOutstandingTables();
refreshAfterBatch = true; refreshAfterBatch = true;
setTimeForBackgroundSync(false); setTimeForBackgroundSync(false);
} }

Loading…
Cancel
Save