Class TransactionHelper (2.0.0)

public final class TransactionHelper

TransactionHelper enables the task queue API to serialize a datastore transaction without knowing the details of how it is implemented.

Inheritance

java.lang.Object > TransactionHelper

Static Methods

setTransaction(Transaction txn, TaskQueuePb.TaskQueueAddRequest.Builder request)

public static void setTransaction(Transaction txn, TaskQueuePb.TaskQueueAddRequest.Builder request)

Sets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending on what kind of transaction is provided.

Parameters
Name Description
txn Transaction
request Builder