MCPcopy Index your code
hub / github.com/apache/tomcat / checkRegisterForWrite

Method checkRegisterForWrite

java/org/apache/coyote/Response.java:950–959  ·  view source on GitHub ↗

Check and register for write interest. @return true if ready for write

()

Source from the content-addressed store, hash-verified

948 * @return {@code true} if ready for write
949 */
950 public boolean checkRegisterForWrite() {
951 AtomicBoolean ready = new AtomicBoolean(false);
952 synchronized (nonBlockingStateLock) {
953 if (!registeredForWrite) {
954 action(ActionCode.NB_WRITE_INTEREST, ready);
955 registeredForWrite = !ready.get();
956 }
957 }
958 return ready.get();
959 }
960
961 /**
962 * Called when writing is possible.

Callers 2

isReadyMethod · 0.95
flushBufferedWriteMethod · 0.45

Calls 2

actionMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected