package com.onaro.sanscreen.client.view.changes; import com.onaro.sanscreen.client.prefs.ClientPrefs; public class ChangesConfig { public static long getChunkLoadWaitTimeoutMillis() { return ClientPrefs.getViewChanges().getLong("chunk.load.wait.timeout.millis", 300000); //$NON-NLS-1$ } /** * all the chunks, but the last one, will be bigger than this number */ public static int getChunkSize() { return ClientPrefs.getViewChanges().getInt("chunk.size", 500); //$NON-NLS-1$ } /** * Loading of all the changes director are using the same thread pool */ public static int getNumberOfLoadingThreads() { return ClientPrefs.getViewChanges().getInt("number.of.loading.threads", 5); //$NON-NLS-1$ } /** * To give priority to chunks according to their order, there's a slight delay in the invocation of their loading */ public static int getDelayBetweenChunksLoadMillis() { return ClientPrefs.getViewChanges().getInt("delay.between.chunks.load.millis", 200); //$NON-NLS-1$ } /** * determine if to separatly init the servers helper maps for all the chunck prior to loading them */ public static boolean initAllChuncksBeforeLoad() { return ClientPrefs.getViewChanges().getBoolean("init.all.chuncks.before.load", true); //$NON-NLS-1$ } }