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

Method take

java/org/apache/tomcat/util/threads/TaskQueue.java:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 @Override
125 public Runnable take() throws InterruptedException {
126 if (parent != null && parent.currentThreadShouldBeStopped()) {
127 return poll(parent.getKeepAliveTime(TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS);
128 // yes, this may return null (in case of timeout) which normally
129 // does not occur with take()
130 // but the ThreadPoolExecutor implementation allows this
131 }
132 return super.take();
133 }
134}

Callers 2

executeMethod · 0.45
getTaskMethod · 0.45

Calls 3

pollMethod · 0.95
getKeepAliveTimeMethod · 0.65

Tested by

no test coverage detected