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 Object implements LocalServerChannelFactory
The defaultLocalServerChannelFactory
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalServerChannelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
newChannel
public LocalServerChannel newChannel(ChannelPipeline pipeline)
Description copied from interface:ChannelFactory
- Specified by:
newChannel
in interfaceChannelFactory
- Specified by:
newChannel
in interfaceLocalServerChannelFactory
- Specified by:
newChannel
in interfaceServerChannelFactory
- Parameters:
pipeline
- theChannelPipeline
which 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:
releaseExternalResources
in interfaceChannelFactory
- Specified by:
releaseExternalResources
in interfaceExternalResourceReleasable
-
shutdown
public void shutdown()
Description copied from interface:ChannelFactory
Shudown the ChannelFactory and all the resource it created internal.- Specified by:
shutdown
in interfaceChannelFactory
-
-