Tabnine Logo
Duration.ofHours
Code IndexAdd Tabnine to your IDE (free)

How to use
ofHours
method
in
org.threeten.bp.Duration

Best Java code snippets using org.threeten.bp.Duration.ofHours (Showing top 8 results out of 315)

origin: googleapis/google-cloud-java

RetrySettings.newBuilder()
  .setMaxAttempts(10)
  .setTotalTimeout(Duration.ofHours(1))
  .setInitialRpcTimeout(Duration.ofSeconds(10))
  .setRpcTimeoutMultiplier(1)
origin: googleapis/google-cloud-java

RetrySettings.newBuilder()
  .setMaxAttempts(10)
  .setTotalTimeout(Duration.ofHours(1))
  .setInitialRpcTimeout(Duration.ofSeconds(10))
  .setRpcTimeoutMultiplier(1)
origin: googleapis/google-cloud-java

RetrySettings.newBuilder()
  .setMaxAttempts(10)
  .setTotalTimeout(Duration.ofHours(1))
  .setInitialRpcTimeout(Duration.ofSeconds(10))
  .setRpcTimeoutMultiplier(1)
origin: googleapis/google-cloud-java

RetrySettings.newBuilder()
  .setMaxAttempts(10)
  .setTotalTimeout(Duration.ofHours(1))
  .setInitialRpcTimeout(Duration.ofSeconds(10))
  .setRpcTimeoutMultiplier(1)
origin: googleapis/google-cloud-java

RetrySettings.newBuilder()
  .setMaxAttempts(10)
  .setTotalTimeout(Duration.ofHours(1))
  .setInitialRpcTimeout(Duration.ofSeconds(10))
  .setRpcTimeoutMultiplier(1)
origin: googleapis/google-cloud-java

.setSimpleTimeoutNoRetries(Duration.ofHours(2))
.setRetryableCodes(settings.readRowsSettings().getRetryableCodes())
.setIdleTimeout(Duration.ZERO);
origin: googleapis/gax-java

FakeRetryingFuture(ServerStreamingAttemptCallable<String, String> attemptCallable) {
 this.attemptCallable = attemptCallable;
 attemptSettings =
   TimedAttemptSettings.newBuilder()
     .setGlobalSettings(
       RetrySettings.newBuilder().setTotalTimeout(Duration.ofHours(1)).build())
     .setFirstAttemptStartTimeNanos(0)
     .setAttemptCount(0)
     .setOverallAttemptCount(0)
     .setRandomizedRetryDelay(Duration.ofMillis(1))
     .setRetryDelay(Duration.ofMillis(1))
     .setRpcTimeout(Duration.ofMinutes(1))
     .build();
}
origin: com.google.cloud/google-cloud-bigtable

.setSimpleTimeoutNoRetries(Duration.ofHours(2))
.setRetryableCodes(settings.readRowsSettings().getRetryableCodes())
.setIdleTimeout(Duration.ZERO);
org.threeten.bpDurationofHours

Javadoc

Obtains an instance of Duration from a number of standard length hours.

The seconds are calculated based on the standard definition of an hour, where each hour is 3600 seconds. The nanosecond in second field is set to zero.

Popular methods of Duration

  • ofMillis
    Obtains an instance of Duration from a number of milliseconds. The seconds and nanoseconds are extra
  • ofSeconds
    Obtains an instance of Duration from a number of seconds and an adjustment in nanoseconds. This meth
  • toMillis
    Converts this duration to the total length in milliseconds. If this duration is too large to fit in
  • ofMinutes
    Obtains an instance of Duration from a number of standard length minutes. The seconds are calculated
  • compareTo
    Compares this duration to the specified Duration. The comparison is based on the total length of the
  • getSeconds
    Gets the number of seconds in this duration. The length of the duration is stored using two fields -
  • isZero
    Checks if this duration is zero length. A Duration represents a directed distance between two points
  • between
    Obtains an instance of Duration representing the duration between two instants. Obtains a Duration
  • getNano
    Gets the number of nanoseconds within the second in this duration. The length of the duration is sto
  • isNegative
    Checks if this duration is negative, excluding zero. A Duration represents a directed distance betwe
  • toNanos
    Converts this duration to the total length in nanoseconds expressed as a long. If this duration is
  • ofNanos
    Obtains an instance of Duration from a number of nanoseconds. The seconds and nanoseconds are extrac
  • toNanos,
  • ofNanos,
  • equals,
  • of,
  • ofDays,
  • plus,
  • toMinutes,
  • <init>,
  • create

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now