public class HttpTunnelingClientSocketChannelFactory extends Object implements ClientSocketChannelFactory
SocketChannel
which connects to an
HttpTunnelingServlet
to communicate with the server application
behind the HttpTunnelingServlet
. Please refer to the
package summary for
the detailed usage.Constructor and Description |
---|
HttpTunnelingClientSocketChannelFactory(ClientSocketChannelFactory clientSocketChannelFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
SocketChannel |
newChannel(ChannelPipeline pipeline)
|
void |
releaseExternalResources()
Releases the external resources that this factory depends on to function.
|
void |
shutdown()
Shudown the ChannelFactory and all the resource it created internal.
|
public HttpTunnelingClientSocketChannelFactory(ClientSocketChannelFactory clientSocketChannelFactory)
public SocketChannel newChannel(ChannelPipeline pipeline)
ChannelFactory
newChannel
in interface ChannelFactory
newChannel
in interface ClientSocketChannelFactory
pipeline
- the ChannelPipeline
which is going to be
attached to the new Channel
public void releaseExternalResources()
ChannelFactory
Executor
s that you specified in the factory
constructor are external resources. You can call this method to release
all external resources conveniently when the resources are not used by
this factory or any other part of your application. An unexpected
behavior will be resulted in if the resources are released when there's
an open channel which is managed by this factory.
This will also call ChannelFactory.shutdown()
before do any actionreleaseExternalResources
in interface ChannelFactory
releaseExternalResources
in interface ExternalResourceReleasable
public void shutdown()
ChannelFactory
shutdown
in interface ChannelFactory
Copyright © 2008-2014 The Netty Project. All Rights Reserved.