/** Stop the Server */ public void stop() { try { handler.destroy(); final ChannelGroupFuture future = ALL_CHANNELS.close(); future.awaitUninterruptibly(); bootstrap.getFactory().releaseExternalResources(); ALL_CHANNELS.clear(); } finally { started.set(false); } }
/** * Return the {@link org.atmosphere.cpr.AtmosphereFramework} instance * * @return the {@link AtmosphereFramework} instance */ public AtmosphereFramework framework() { return handler.framework(); }