public static ChannelPool createChannelPool(final String host, final BigtableOptions options)
throws IOException, GeneralSecurityException {
return createChannelPool(host, options, 1);
}
public static ChannelPool createChannelPool(final String host, final BigtableOptions options, int count)
<BUG>throws IOException, GeneralSecurityException {
HeaderInterceptor interceptor =
CredentialInterceptorCache.getInstance()
.getCredentialsInterceptor(options.getCredentialOptions(), options.getRetryOptions());
return new ChannelPool(
ImmutableList.<HeaderInterceptor>of(interceptor),
</BUG>
new ChannelPool.ChannelFactory() {

public static ChannelPool createChannelPool(final String host, final BigtableOptions options)
throws IOException, GeneralSecurityException {
return createChannelPool(host, options, 1);
}
public static ChannelPool createChannelPool(final String host, final BigtableOptions options, int count)
throws IOException, GeneralSecurityException {
HeaderInterceptor credentialsInterceptor = CredentialInterceptorCache.getInstance()
.getCredentialsInterceptor(options.getCredentialOptions(), options.getRetryOptions());
HeaderInterceptor prefixInterceptor =
new GoogleCloudResourcePrefixInterceptor(options.getInstanceName().toString());
return new ChannelPool(
ImmutableList.<HeaderInterceptor>of(credentialsInterceptor, prefixInterceptor),
new ChannelPool.ChannelFactory() {
