public class QueriesExecutionContext extends Object
 Holds the count of Result produced by Statement#execute and count that has
 consumed Result#[map|getRowsUpdated].
| Constructor and Description | 
|---|
QueriesExecutionContext(Clock clock)  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
getElapsedDuration()
Retrieve the elapsed time from the stopwatch that has started by  
startStopwatch(). | 
void | 
incrementConsumedCount()
Increment the count of consumptions from  
Result#[map|getRowsUpdated]. | 
void | 
incrementProducedCount()
Increment the count of produced  
Result from Statement#execute. | 
boolean | 
isAllConsumed()
Whether currently all produced  
Results are consumed. | 
boolean | 
isQueryFinished()
Whether the executed queries have finished and results are consumed. 
 | 
void | 
markAllProduced()
When  
QueryInvocationSubscriber produced all Result objects. | 
void | 
startStopwatch()
Start the stopwatch. 
 | 
public QueriesExecutionContext(Clock clock)
public void incrementProducedCount()
Result from Statement#execute.public void incrementConsumedCount()
Result#[map|getRowsUpdated].public Duration getElapsedDuration()
startStopwatch().public void startStopwatch()
public boolean isQueryFinished()
 The query is considered finished when the publisher from Statement#execute() have produced
 Results and those are consumed via Result#getRowsUpdated or Result#map.
true if all Result are produced and consumed.public boolean isAllConsumed()
Results are consumed.true if all produced Results are consumed.public void markAllProduced()
QueryInvocationSubscriber produced all Result objects.Copyright © 2025. All rights reserved.