Example #1
0
 /** 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);
   }
 }
Example #2
0
 /**
  * Return the {@link org.atmosphere.cpr.AtmosphereFramework} instance
  *
  * @return the {@link AtmosphereFramework} instance
  */
 public AtmosphereFramework framework() {
   return handler.framework();
 }