public class HttpTunnelingClientSocketChannelFactory extends java.lang.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.构造器和说明 |
---|
HttpTunnelingClientSocketChannelFactory(ClientSocketChannelFactory clientSocketChannelFactory)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ChannelFactory
newChannel
在接口中 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
在接口中 ChannelFactory
releaseExternalResources
在接口中 ExternalResourceReleasable
public void shutdown()
ChannelFactory
shutdown
在接口中 ChannelFactory