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 Summary
Constructors Constructor Description ChannelResourceFactory(org.jboss.netty.bootstrap.ClientBootstrap bootstrap, SSLContext sslContext, HttpClientProxyConfig proxyConfig, org.jboss.netty.util.Timer timer, long sslHandshakeTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(org.jboss.netty.channel.ChannelFuture resource)
org.jboss.netty.channel.ChannelFuture
generate(String hostname)
boolean
isGood(org.jboss.netty.channel.ChannelFuture resource)
-
-
-
Constructor Detail
-
ChannelResourceFactory
public ChannelResourceFactory(org.jboss.netty.bootstrap.ClientBootstrap bootstrap, SSLContext sslContext, HttpClientProxyConfig proxyConfig, org.jboss.netty.util.Timer timer, long sslHandshakeTimeout)
-
-
Method Detail
-
generate
public org.jboss.netty.channel.ChannelFuture generate(String hostname)
- Specified by:
generate
in interfaceResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
-
isGood
public boolean isGood(org.jboss.netty.channel.ChannelFuture resource)
- Specified by:
isGood
in interfaceResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
-
close
public void close(org.jboss.netty.channel.ChannelFuture resource)
- Specified by:
close
in interfaceResourceFactory<String,org.jboss.netty.channel.ChannelFuture>
-
-