public class DefaultLocalServerChannelFactory extends java.lang.Object implements LocalServerChannelFactory
LocalServerChannelFactory implementation.| Modifier and Type | Field and Description |
|---|---|
private DefaultChannelGroup |
group |
private ChannelSink |
sink |
| Constructor and Description |
|---|
DefaultLocalServerChannelFactory() |
| Modifier and Type | Method and Description |
|---|---|
LocalServerChannel |
newChannel(ChannelPipeline pipeline)
|
void |
releaseExternalResources()
Release all the previous created channels.
|
void |
shutdown()
Shudown the ChannelFactory and all the resource it created internal.
|
private final DefaultChannelGroup group
private final ChannelSink sink
public LocalServerChannel newChannel(ChannelPipeline pipeline)
ChannelFactorynewChannel in interface ChannelFactorynewChannel in interface LocalServerChannelFactorynewChannel in interface ServerChannelFactorypipeline - the ChannelPipeline which is going to be
attached to the new Channelpublic void releaseExternalResources()
LocalChannelRegistry.unregister(LocalAddress) for each of them.releaseExternalResources in interface ChannelFactoryreleaseExternalResources in interface ExternalResourceReleasablepublic void shutdown()
ChannelFactoryshutdown in interface ChannelFactory