Codota Logo
BigtableSessionSharedThreadPools.getInstance
Code IndexAdd Codota to your IDE (free)

How to use
getInstance
method
in
com.google.cloud.bigtable.grpc.BigtableSessionSharedThreadPools

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableSessionSharedThreadPools.getInstance (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: GoogleCloudPlatform/cloud-bigtable-client

 @Override
 public void run() {
  // The first invocation of BigtableSessionSharedThreadPools.getInstance() is expensive.
  // Reference it so that it gets constructed asynchronously.
  BigtableSessionSharedThreadPools.getInstance();
 }
});
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>createBulkMutation.</p>
 *
 * @param tableName a {@link com.google.cloud.bigtable.grpc.BigtableTableName} object.
 * @return a {@link com.google.cloud.bigtable.grpc.async.BulkMutation} object.
 */
public BulkMutation createBulkMutation(BigtableTableName tableName) {
 return new BulkMutation(
   tableName,
   throttlingDataClient,
   BigtableSessionSharedThreadPools.getInstance().getRetryExecutor(),
   options.getBulkOptions());
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>createBulkRead.</p>
 *
 * @param tableName a {@link com.google.cloud.bigtable.grpc.BigtableTableName} object.
 * @return a {@link com.google.cloud.bigtable.grpc.async.BulkRead} object.
 */
public BulkRead createBulkRead(BigtableTableName tableName) {
 return new BulkRead(dataClient, tableName, options.getBulkOptions().getBulkMaxRowKeyCount(),
   BigtableSessionSharedThreadPools.getInstance().getBatchThreadPool()
 );
}
origin: GoogleCloudPlatform/cloud-bigtable-client

private WatchdogInterceptor setupWatchdog() {
 Preconditions.checkState(watchdog == null, "Watchdog already setup");
 watchdog = new Watchdog(Clock.SYSTEM,
   options.getRetryOptions().getReadPartialRowTimeoutMillis());
 watchdog.start(BigtableSessionSharedThreadPools.getInstance().getRetryExecutor());
 return new WatchdogInterceptor(
   ImmutableSet.<MethodDescriptor<?, ?>>of(BigtableGrpc.getReadRowsMethod()),
   watchdog);
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>Getter for the field <code>tableAdminClient</code>.</p>
 *
 * @return a {@link com.google.cloud.bigtable.grpc.BigtableTableAdminClient} object.
 * @throws java.io.IOException if any.
 */
public synchronized BigtableTableAdminClient getTableAdminClient() throws IOException {
 if (tableAdminClient == null) {
  ManagedChannel channel = createManagedPool(options.getAdminHost(), 1);
  tableAdminClient = new BigtableTableAdminGrpcClient(channel,
    BigtableSessionSharedThreadPools.getInstance().getRetryExecutor(), options);
 }
 return tableAdminClient;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

BigtableSessionSharedThreadPools.getInstance().getRetryExecutor().scheduleAtFixedRate(r, 20, 20,
 TimeUnit.SECONDS);
isThrottling = true;
origin: GoogleCloudPlatform/cloud-bigtable-client

BigtableSessionSharedThreadPools sharedPools = BigtableSessionSharedThreadPools.getInstance();
com.google.cloud.bigtable.grpcBigtableSessionSharedThreadPoolsgetInstance

Javadoc

Get the shared instance of ThreadPools.

Popular methods of BigtableSessionSharedThreadPools

  • getBatchThreadPool
    Getter for the field batchThreadPool.
  • getRetryExecutor
    Getter for the field retryExecutor.

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ImageIO (javax.imageio)
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now