Package org.jboss.netty.channel.local
Class DefaultLocalServerChannelFactory
- java.lang.Object
-
- org.jboss.netty.channel.local.DefaultLocalServerChannelFactory
-
- All Implemented Interfaces:
ChannelFactory,LocalServerChannelFactory,ServerChannelFactory,ExternalResourceReleasable
public class DefaultLocalServerChannelFactory extends java.lang.Object implements LocalServerChannelFactory
The defaultLocalServerChannelFactoryimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultChannelGroupgroupprivate ChannelSinksink
-
Constructor Summary
Constructors Constructor Description DefaultLocalServerChannelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalServerChannelnewChannel(ChannelPipeline pipeline)voidreleaseExternalResources()Release all the previous created channels.voidshutdown()Shudown the ChannelFactory and all the resource it created internal.
-
-
-
Field Detail
-
group
private final DefaultChannelGroup group
-
sink
private final ChannelSink sink
-
-
Method Detail
-
newChannel
public LocalServerChannel newChannel(ChannelPipeline pipeline)
Description copied from interface:ChannelFactory- Specified by:
newChannelin interfaceChannelFactory- Specified by:
newChannelin interfaceLocalServerChannelFactory- Specified by:
newChannelin interfaceServerChannelFactory- Parameters:
pipeline- theChannelPipelinewhich is going to be attached to the newChannel- Returns:
- the newly open channel
-
releaseExternalResources
public void releaseExternalResources()
Release all the previous created channels. This takes care of callingLocalChannelRegistry.unregister(LocalAddress)for each of them.- Specified by:
releaseExternalResourcesin interfaceChannelFactory- Specified by:
releaseExternalResourcesin interfaceExternalResourceReleasable
-
shutdown
public void shutdown()
Description copied from interface:ChannelFactoryShudown the ChannelFactory and all the resource it created internal.- Specified by:
shutdownin interfaceChannelFactory
-
-