Uses of Class
com.google.cloud.spanner.AbortedException
Packages that use AbortedException
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of AbortedException in com.google.cloud.spanner
Subclasses of AbortedException in com.google.cloud.spannerModifier and TypeClassDescriptionclassException thrown by aConnectionwhen a database operation detects that a transaction has aborted and an internal retry failed because of a concurrent modification.classException thrown by aConnectionwhen an automatic DML batch detects that one or more of the update counts that it returned during the buffering of DML statements does not match with the actual update counts that were returned after execution.Methods in com.google.cloud.spanner with parameters of type AbortedExceptionModifier and TypeMethodDescriptionTransactionManager.begin(AbortedException exception) Initializes a new read-write transaction that is a retry of a previously aborted transaction.AsyncTransactionManager.beginAsync(AbortedException exception) Initializes a new read-write transaction that is a retry of a previously aborted transaction.DelayedAsyncTransactionManager.beginAsync(AbortedException exception) SpannerExceptionFactory.newAbortedDueToConcurrentModificationException(AbortedException cause) Constructs a specific aborted exception that should only be thrown by a connection after an internal retry aborted due to concurrent modifications.SpannerExceptionFactory.newAbortedDueToConcurrentModificationException(AbortedException cause, SpannerException databaseError) Constructs a specific aborted exception that should only be thrown by a connection after an internal retry aborted because a database call caused an exception that did not happen during the original attempt.Methods in com.google.cloud.spanner that throw AbortedExceptionModifier and TypeMethodDescriptioncom.google.cloud.TimestampAsyncTransactionManager.CommitTimestampFuture.get()Returns the commit timestamp of the transaction.com.google.cloud.TimestampSame asAsyncTransactionManager.CommitTimestampFuture.get(), but will throw aTimeoutExceptionif the transaction does not finish within the timeout.