Class BlockingIOCometSupport

java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.BlockingIOCometSupport
All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>

public class BlockingIOCometSupport extends AsynchronousProcessor
This class is used when the AtmosphereFramework fails to autodetect the Servlet Container we are running on.

This AsyncSupport implementation uses a blocking approach, meaning the request thread will be blocked until another Thread invoke the Broadcaster.broadcast(java.lang.Object).

JDK 25+ Compatibility: On JDK 25 and later, this class automatically uses a default timeout instead of infinite wait to avoid deadlocks caused by changes in AbstractQueuedSynchronizer. This can be configured via:

  • org.atmosphere.container.blockingIO.defaultTimeout - timeout in milliseconds (default: 300000 = 5 minutes)
  • org.atmosphere.container.blockingIO.jdk25SafeMode - enable/disable safe mode (default: auto-detect JDK version)