MCPcopy Create free account
hub / github.com/apache/tomcat / poll

Method poll

java/org/apache/tomcat/util/threads/TaskQueue.java:113–122  ·  view source on GitHub ↗
(long timeout, TimeUnit unit)

Source from the content-addressed store, hash-verified

111
112
113 @Override
114 public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException {
115 Runnable runnable = super.poll(timeout, unit);
116 if (runnable == null && parent != null) {
117 // the poll timed out, it gives an opportunity to stop the current
118 // thread if needed to avoid memory leaks.
119 parent.stopCurrentThreadIfNeeded();
120 }
121 return runnable;
122 }
123
124 @Override
125 public Runnable take() throws InterruptedException {

Callers 15

takeMethod · 0.95
sendMessageMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
endMessageMethod · 0.45
generateMaskMethod · 0.45
digestMethod · 0.45
formatMethod · 0.45
parseMethod · 0.45
getTaskMethod · 0.45
rejectedExecutionMethod · 0.45

Calls 1

Tested by 3

runMethod · 0.36
runMethod · 0.36
runMethod · 0.36