Class ChannelResourceFactory

java.lang.Object
org.apache.druid.java.util.http.client.pool.ChannelResourceFactory
All Implemented Interfaces:
ResourceFactory<String,org.jboss.netty.channel.ChannelFuture>

public class ChannelResourceFactory extends Object implements ResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
  • Constructor Details

    • ChannelResourceFactory

      public ChannelResourceFactory(org.jboss.netty.bootstrap.ClientBootstrap bootstrap, SSLContext sslContext, HttpClientProxyConfig proxyConfig, org.jboss.netty.util.Timer timer, long sslHandshakeTimeout)
  • Method Details

    • generate

      public org.jboss.netty.channel.ChannelFuture generate(String hostname)
      Specified by:
      generate in interface ResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
    • isGood

      public boolean isGood(org.jboss.netty.channel.ChannelFuture resource)
      Specified by:
      isGood in interface ResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
    • close

      public void close(org.jboss.netty.channel.ChannelFuture resource)
      Specified by:
      close in interface ResourceFactory<String,org.jboss.netty.channel.ChannelFuture>