BigtableOptions.usePlaintextNegotiation
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.google.cloud.bigtable.config.BigtableOptions.usePlaintextNegotiation(Showing top 1 results out of 315)

origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>createNettyChannel.</p>
 *
 * @param host a {@link String} object.
 * @param options a {@link BigtableOptions} object.
 * @return a {@link ManagedChannel} object.
 * @throws SSLException if any.
 */
public static ManagedChannel createNettyChannel(String host,
  BigtableOptions options, ClientInterceptor ... interceptors) throws SSLException {
 // Ideally, this should be ManagedChannelBuilder.forAddress(...) rather than an explicit
 // call to NettyChannelBuilder.  Unfortunately, that doesn't work for shaded artifacts.
 ManagedChannelBuilder<?> builder = ManagedChannelBuilder
   .forAddress(host, options.getPort());
 if (options.usePlaintextNegotiation()) {
  builder.usePlaintext(true);
 }
 return builder
   .idleTimeout(Long.MAX_VALUE, TimeUnit.SECONDS)
   .maxInboundMessageSize(MAX_MESSAGE_SIZE)
   .userAgent(BigtableVersionInfo.CORE_UESR_AGENT + "," + options.getUserAgent())
   .intercept(interceptors)
   .build();
}
com.google.cloud.bigtable.configBigtableOptionsusePlaintextNegotiation

Javadoc

usePlaintextNegotiation.

Popular methods of BigtableOptions

  • getInstanceName
  • getBulkOptions
  • getCredentialOptions
  • getInstanceId
  • getProjectId
  • getDataHost
  • getPort
  • getRetryOptions
  • getAdminHost
  • getUserAgent
  • toBuilder
    toBuilder.
  • <init>
  • toBuilder,
  • <init>,
  • getAppProfileId,
  • getCallOptionsConfig,
  • getChannelCount,
  • toString,
  • useCachedChannel

Popular classes and methods

  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Proxy (java.net)
    This class represents a proxy setting, typically a type (http, socks) and a socket address. A Proxy
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)