Package org.apache.tomcat.jni.socket
Interface AprSocketContext.NonBlockingPollHandler
-
- All Superinterfaces:
AprSocketContext.BlockingPollHandler
- Enclosing class:
- AprSocketContext
public static interface AprSocketContext.NonBlockingPollHandler extends AprSocketContext.BlockingPollHandler
Additional callbacks for non-blocking. This can be much faster - but it's harder to code, should be used only for low-level protocol implementation, proxies, etc. The model is restricted in many ways to avoid complexity and bugs: - read can only happen in the IO thread associated with the poller - user doesn't control poll interest - it is set automatically based on read/write results - it is only possible to suspend read, for TCP flow control - also only from the IO thread. Resume can happen from any thread. - it is also possible to call write() from any thread
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connected(AprSocket ch)
Called after connection is established, in a thread pool.void
error(AprSocket ch, java.lang.Throwable t)
Before close, if an exception happens.-
Methods inherited from interface org.apache.tomcat.jni.socket.AprSocketContext.BlockingPollHandler
closed, process
-
-