Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
toString for retrying
  • Loading branch information
igorbernstein2 committed Aug 29, 2024
commit fee03b13827383f97e1517f5da0255f643c2dcbd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.gax.tracing.ApiTracer;
import com.google.common.base.MoreObjects;
import com.google.common.util.concurrent.AbstractFuture;
import com.google.common.util.concurrent.MoreExecutors;
import java.util.concurrent.Callable;
Expand Down Expand Up @@ -265,6 +266,17 @@ private void setAttemptResult(Throwable throwable, ResponseT response, boolean s
}
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this.getClass())
.add("super", pendingToString())
.add("latestCompletedAttemptResult", this.latestCompletedAttemptResult)
.add("attemptResult", this.attemptResult)
.add("attemptSettings", this.attemptSettings)
.toString();

}

private class CompletionListener implements Runnable {
@Override
public void run() {
Expand Down