public final class TransactionWindow
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
EXPECTED_SEND_TIME
the expected maximum transmission time
|
static long |
MAX_SEND_TIME
the expected maximum transmission time
|
static java.lang.String |
PROPERTY_TRANSACTION_EXPECTED_SEND_TIME
the property to control the expected transmission time
|
static java.lang.String |
PROPERTY_TRANSACTION_MAX_SEND_TIME
the property to control the expected maximum transmission time
|
static java.lang.String |
PROPERTY_TRANSACTION_WINDOW_MINUTES
the property to control the number of minutes to track the processing the transactions
|
static int |
TRANSACTION_WINDOW_MINUTES
the number of minutes to track the processing the transactions
|
Constructor and Description |
---|
TransactionWindow(VirtualDB layer)
constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkMissedTransaction(long transID,
long transactionMS)
have we missed this transaction.
|
long |
getErrorCount()
The number of errors
|
long |
getMissedCount()
The number of transactions missed.
|
void |
processTransaction(long transID,
long transactionMS)
process the transaction.
|
void |
receivedTransaction(long transID,
long transactionMS)
process the transaction.
|
void |
scan()
scan the layer.
|
boolean |
shouldLoadTransaction(long transID,
long transactionMS)
we require this transaction to be loaded.
|
public static final java.lang.String PROPERTY_TRANSACTION_EXPECTED_SEND_TIME
public static final long EXPECTED_SEND_TIME
public static final java.lang.String PROPERTY_TRANSACTION_MAX_SEND_TIME
public static final long MAX_SEND_TIME
public static final java.lang.String PROPERTY_TRANSACTION_WINDOW_MINUTES
public static final int TRANSACTION_WINDOW_MINUTES
public TransactionWindow(VirtualDB layer)
layer
- the layerpublic long getMissedCount()
public long getErrorCount()
public void scan()
public boolean checkMissedTransaction(long transID, long transactionMS)
transID
- the transaction to checktransactionMS
- the transaction timepublic boolean shouldLoadTransaction(long transID, long transactionMS)
transID
- the transaction to checktransactionMS
- the transaction timepublic void receivedTransaction(long transID, long transactionMS)
transID
- the transaction to checktransactionMS
- the transaction timepublic void processTransaction(long transID, long transactionMS)
transID
- the transaction to checktransactionMS
- the transaction timestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.