@NotThreadSafe public class TransactionContext extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
OFFSET_TABLE_COUNT_PREFIX |
private static int |
OFFSET_TABLE_COUNT_PREFIX_LENGTH |
private static String |
OFFSET_TRANSACTION_ID |
private Map<String,Long> |
perTableEventCount |
private long |
totalEventCount |
private String |
transactionId |
private Map<String,Long> |
viewPerTableEventCount |
Constructor and Description |
---|
TransactionContext() |
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction(String txId) |
void |
endTransaction() |
long |
event(DataCollectionId source) |
Map<String,Long> |
getPerTableEventCount() |
long |
getTotalEventCount() |
String |
getTransactionId() |
boolean |
isTransactionInProgress() |
static TransactionContext |
load(Map<String,?> offsets) |
private void |
reset() |
Map<String,Object> |
store(Map<String,Object> offset) |
String |
toString() |
private static final String OFFSET_TRANSACTION_ID
private static final String OFFSET_TABLE_COUNT_PREFIX
private static final int OFFSET_TABLE_COUNT_PREFIX_LENGTH
private String transactionId
private long totalEventCount
private void reset()
public static TransactionContext load(Map<String,?> offsets)
public boolean isTransactionInProgress()
public String getTransactionId()
public long getTotalEventCount()
public void beginTransaction(String txId)
public void endTransaction()
public long event(DataCollectionId source)
Copyright © 2020 JBoss by Red Hat. All rights reserved.