Class InsertRetryPolicy

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class InsertRetryPolicy
    extends java.lang.Object
    implements java.io.Serializable
    A retry policy for streaming BigQuery inserts.
    See Also:
    Serialized Form
    • Constructor Detail

      • InsertRetryPolicy

        public InsertRetryPolicy()
    • Method Detail

      • shouldRetry

        public abstract boolean shouldRetry​(InsertRetryPolicy.Context context)
        Return true if this failure should be retried.
      • neverRetry

        public static InsertRetryPolicy neverRetry()
        Never retry any failures.
      • alwaysRetry

        public static InsertRetryPolicy alwaysRetry()
        Always retry all failures.
      • retryTransientErrors

        public static InsertRetryPolicy retryTransientErrors()
        Retry all failures except for known persistent errors.