Package org.jboss.netty.channel.local
Class DefaultLocalServerChannelFactory
java.lang.Object
org.jboss.netty.channel.local.DefaultLocalServerChannelFactory
- All Implemented Interfaces:
ChannelFactory
,LocalServerChannelFactory
,ServerChannelFactory
,ExternalResourceReleasable
The default
LocalServerChannelFactory
implementation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewChannel
(ChannelPipeline pipeline) void
Release all the previous created channels.void
shutdown()
Shudown the ChannelFactory and all the resource it created internal.
-
Field Details
-
group
-
sink
-
-
Constructor Details
-
DefaultLocalServerChannelFactory
public DefaultLocalServerChannelFactory()
-
-
Method Details
-
newChannel
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
-