Expose transaction concurrency indexes in streams and generators
This commit is contained in:
1 parent
40d402ce8a
commit
1f861cefb8
13 files changed
+264
-16
No files matched your search
+23
@@ -38,6 +38,9 @@ class Tx implements ITx {
|
||||
|
||||
private final long streamId;
|
||||
|
||||
private volatile int concurrencyIndxInStream = -1;
|
||||
private volatile int concurrencyIdxInGen = -1;
|
||||
|
||||
/** The begin time. */
|
||||
long beginTime = -1;
|
||||
|
||||
@@ -174,6 +177,26 @@ class Tx implements ITx {
|
||||
return loader.txGenerators.get(generatorId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getConcurrencyIndxInStream() {
|
||||
if (concurrencyIndxInStream < 0) getStream().getRowCount();
|
||||
return concurrencyIndxInStream;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getConcurrencyIdxInGen() {
|
||||
if (concurrencyIdxInGen < 0) getGenerator().getRowCount();
|
||||
return concurrencyIdxInGen;
|
||||
}
|
||||
|
||||
void setConcurrencyIndxInStream(int index) {
|
||||
concurrencyIndxInStream = index;
|
||||
}
|
||||
|
||||
void setConcurrencyIdxInGen(int index) {
|
||||
concurrencyIdxInGen = index;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the begin time.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user