public virtual void Shutdown() { if (ch != null) { ch.Close().AwaitUninterruptibly(); } if (server != null) { server.ReleaseExternalResources(); } }
/// <exception cref="System.Exception"/> protected override void ServiceStop() { accepted.Close().AwaitUninterruptibly(10, TimeUnit.Seconds); if (selector != null) { ServerBootstrap bootstrap = new ServerBootstrap(selector); bootstrap.ReleaseExternalResources(); } if (pipelineFact != null) { pipelineFact.Destroy(); } if (stateDb != null) { stateDb.Close(); } base.ServiceStop(); }
internal void Shutdown() { allChannels.Close().AwaitUninterruptibly(); tcpServer.ReleaseExternalResources(); udpServer.ReleaseExternalResources(); }