Codota Logo
GrpcCallContext.getStreamIdleTimeout
Code IndexAdd Codota to your IDE (free)

How to use
getStreamIdleTimeout
method
in
com.google.api.gax.grpc.GrpcCallContext

Best Java code snippets using com.google.api.gax.grpc.GrpcCallContext.getStreamIdleTimeout (Showing top 2 results out of 315)

  • Common ways to obtain GrpcCallContext
private void myMethod () {
GrpcCallContext g =
  • Codota IconGrpcCallContext.createDefault()
  • Smart code suggestions by Codota
}
origin: googleapis/gax-java

@Test
public void testWithZeroStreamingIdleTimeout() {
 Duration timeout = Duration.ZERO;
 Truth.assertThat(
     GrpcCallContext.createDefault().withStreamIdleTimeout(timeout).getStreamIdleTimeout())
   .isEqualTo(timeout);
}
origin: googleapis/gax-java

@Test
public void testWithStreamingIdleTimeout() {
 Duration timeout = Duration.ofSeconds(15);
 GrpcCallContext context = GrpcCallContext.createDefault().withStreamIdleTimeout(timeout);
 Truth.assertThat(context.getStreamIdleTimeout()).isEqualTo(timeout);
}
com.google.api.gax.grpcGrpcCallContextgetStreamIdleTimeout

Javadoc

The stream idle timeout set for this context.

Popular methods of GrpcCallContext

  • createDefault
    Returns an empty instance with a null channel and default CallOptions.
  • getCallOptions
    The CallOptions set on this context.
  • getChannel
    The Channel set on this context.
  • getExtraHeaders
    The extra header for this context.
  • getTimeout
  • nullToSelf
    Returns inputContext cast to GrpcCallContext, or an empty GrpcCallContext if inputContext is null.
  • of
    Returns an instance with the given channel and CallOptions.
  • withCallOptions
    Returns a new instance with the call options set to the given call options.
  • withChannel
    Returns a new instance with the channel set to the given channel.
  • withChannelAffinity
  • withRequestParamsDynamicHeaderOption
  • <init>
  • withRequestParamsDynamicHeaderOption,
  • <init>,
  • getChannelAffinity,
  • getMetadata,
  • withExtraHeaders,
  • withStreamIdleTimeout,
  • withStreamWaitTimeout,
  • getStreamWaitTimeout,
  • getTracer

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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