Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 141
feat: introduce java.time variables and methods#3495
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
439e105fafe22ab421084ea066d97b77a79ade9220File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -16,15 +16,17 @@ | ||
| package com.google.cloud.spanner; | ||
| import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration; | ||
| import com.google.api.core.InternalApi; | ||
| import com.google.api.gax.tracing.ApiTracer; | ||
| import com.google.api.gax.tracing.BaseApiTracer; | ||
| import com.google.api.gax.tracing.MetricsTracer; | ||
| import com.google.common.collect.ImmutableList; | ||
| import java.time.Duration; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import org.threeten.bp.Duration; | ||
| @InternalApi | ||
| public class CompositeTracer extends BaseApiTracer { | ||
| @@ -109,14 +111,14 @@ public void attemptCancelled() { | ||
| } | ||
| @Override | ||
| public void attemptFailed(Throwable error, Duration delay) { | ||
| public void attemptFailed(Throwable error, org.threeten.bp.Duration delay) { | ||
| ||
| for (ApiTracer child : children) { | ||
| child.attemptFailed(error, delay); | ||
| child.attemptFailedDuration(error, toJavaTimeDuration(delay)); | ||
| } | ||
| } | ||
| @Override | ||
| public void attemptFailedDuration(Throwable error, java.time.Duration delay) { | ||
| public void attemptFailedDuration(Throwable error, Duration delay) { | ||
| for (ApiTracer child : children) { | ||
| child.attemptFailedDuration(error, delay); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.