public String quickMessage() { try { return messages.poll(500, TimeUnit.MICROSECONDS); } catch (InterruptedException e) { throw new RuntimeException(e); } }
public String message() { try { return messages.poll(10, TimeUnit.SECONDS); } catch (InterruptedException e) { throw new RuntimeException(e); } }
@Override public void run() { while (true) { if (waitingOperations.size() > 0) { WaitingOperation wo = waitingOperations.poll(); processOperation(wo.getOperation(), wo.getFile()); } } }
public DataIterParse(long ts, String[] pvlog, String line) { this.ts = ts; String Url = ColsDefine.decodeString(pvlog[3]); String url_lwfrom = ColsDefine.getName(Url, "lwfrom"); this.parseSaoma(url_lwfrom); this.setPV2(url_lwfrom, Url); this.curr = querylist.poll(); }
@Override public boolean next() { this.curr = querylist.poll(); return isvalidate(); }