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

Method pause

java/org/apache/tomcat/util/net/AbstractEndpoint.java:2305–2312  ·  view source on GitHub ↗

Pause the endpoint, which will stop it accepting new connections and unlock the acceptor.

()

Source from the content-addressed store, hash-verified

2303 * Pause the endpoint, which will stop it accepting new connections and unlock the acceptor.
2304 */
2305 public void pause() {
2306 if (running && !paused) {
2307 paused = true;
2308 releaseConnectionLatch();
2309 unlockAccept();
2310 getHandler().pause();
2311 }
2312 }
2313
2314 /**
2315 * Resume the endpoint, which will make it start accepting new connections again.

Callers

nothing calls this directly

Calls 4

unlockAcceptMethod · 0.95
getHandlerMethod · 0.95
pauseMethod · 0.65

Tested by

no test coverage detected