- 
                Notifications
    
You must be signed in to change notification settings  - Fork 136
 
feat: introduce java.time variables and methods #3495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
439e105
              fafe22a
              b421084
              ea066d9
              7b77a79
              ade9220
              File filter
Filter by extension
Conversations
Jump to
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) { | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Can we import  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done  | 
||
| 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.