MCPcopy Create free account
hub / github.com/diyhi/bbs / poll2

Method poll2

src/main/java/cms/utils/UniqueBlockingQueue.java:165–168  ·  view source on GitHub ↗

将首个元素从队列中弹出,如果队列是空的,就返回null。不删除唯一标记

(long timeout, TimeUnit unit)

Source from the content-addressed store, hash-verified

163 * 将首个元素从队列中弹出,如果队列是空的,就返回null。不删除唯一标记
164 */
165 public T poll2(long timeout, TimeUnit unit) throws InterruptedException {
166 T e = mBlockingQueue.poll(timeout, unit);
167 return e;
168 }
169
170 /**
171 * 删除唯一标记

Callers 1

drainMethod · 0.80

Calls 1

pollMethod · 0.80

Tested by

no test coverage detected