/** * Creates a new Thread that asynchronously posts call logs to Restlet Cloud */ public void flushLogs() { if (callLogs.isEmpty()) { return; } CallLogs logsToPost; synchronized (callLogs) { if (callLogs.isEmpty()) { return; } logsToPost = new CallLogs(callLogs.size()); logsToPost.addAll(callLogs); callLogs.clear(); } postLogs(logsToPost); }
/** * Creates a new Thread that asynchronously posts call logs to Restlet Cloud */ public void flushLogs() { if (callLogs.isEmpty()) { return; } CallLogs logsToPost; synchronized (callLogs) { if (callLogs.isEmpty()) { return; } logsToPost = new CallLogs(callLogs.size()); logsToPost.addAll(callLogs); callLogs.clear(); } postLogs(logsToPost); }
/** * Creates a new Thread that asynchronously posts call logs to Restlet Cloud */ public void flushLogs() { if (callLogs.isEmpty()) { return; } CallLogs logsToPost; synchronized (callLogs) { if (callLogs.isEmpty()) { return; } logsToPost = new CallLogs(callLogs.size()); logsToPost.addAll(callLogs); callLogs.clear(); } postLogs(logsToPost); }
/** * Creates a new Thread that asynchronously posts call logs to Restlet Cloud */ public void flushLogs() { if (callLogs.isEmpty()) { return; } CallLogs logsToPost; synchronized (callLogs) { if (callLogs.isEmpty()) { return; } logsToPost = new CallLogs(callLogs.size()); logsToPost.addAll(callLogs); callLogs.clear(); } postLogs(logsToPost); }