public static void addLoadingTask(ILoadingTask lt) { try { loadingTaskQueue.put(lt); } catch (InterruptedException e) { LogHandler.getInstance().write(e.getMessage(), Global.class); } }
public static long compareTimeInSeconds(Date source, Date compare) { try { long dff = source.getTime() - compare.getTime(); return dff / 1000; } catch (Exception e) { LogHandler.getInstance().write(e.getMessage(), Global.class); return 0; } }