@VisibleForTesting @Internal public static final class TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> extends Object
Modifier and Type | Field and Description |
---|---|
protected Optional<CONTEXT> |
context |
protected List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> |
pendingCommitTransactions |
protected TwoPhaseCommitSinkFunction.TransactionHolder<TXN> |
pendingTransaction |
Constructor and Description |
---|
State() |
State(TwoPhaseCommitSinkFunction.TransactionHolder<TXN> pendingTransaction,
List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> pendingCommitTransactions,
Optional<CONTEXT> context) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<CONTEXT> |
getContext() |
List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> |
getPendingCommitTransactions() |
TwoPhaseCommitSinkFunction.TransactionHolder<TXN> |
getPendingTransaction() |
int |
hashCode() |
void |
setContext(Optional<CONTEXT> context) |
void |
setPendingCommitTransactions(List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> pendingCommitTransactions) |
void |
setPendingTransaction(TwoPhaseCommitSinkFunction.TransactionHolder<TXN> pendingTransaction) |
@Nullable protected TwoPhaseCommitSinkFunction.TransactionHolder<TXN> pendingTransaction
protected List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> pendingCommitTransactions
public State()
public State(@Nullable TwoPhaseCommitSinkFunction.TransactionHolder<TXN> pendingTransaction, List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> pendingCommitTransactions, Optional<CONTEXT> context)
@Nullable public TwoPhaseCommitSinkFunction.TransactionHolder<TXN> getPendingTransaction()
public void setPendingTransaction(@Nullable TwoPhaseCommitSinkFunction.TransactionHolder<TXN> pendingTransaction)
public List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> getPendingCommitTransactions()
public void setPendingCommitTransactions(List<TwoPhaseCommitSinkFunction.TransactionHolder<TXN>> pendingCommitTransactions)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.