Record Class MetricsCollector.Snapshot

java.lang.Object
java.lang.Record
com.pyranid.MetricsCollector.Snapshot
Record Components:
connectionsAcquiredStatementScope - statement-scoped connection acquisitions that completed normally
connectionsAcquiredTransactionScope - transaction-scoped connection acquisitions that completed normally
connectionsFailedStatementScope - statement-scoped connection acquisitions that failed
connectionsFailedTransactionScope - transaction-scoped connection acquisitions that failed
connectionReleaseFailuresStatementScope - statement-scoped connection releases that failed
connectionReleaseFailuresTransactionScope - transaction-scoped connection releases that failed
transactionClosuresEntered - closure-based transactions entered
transactionClosuresExited - closure-based transactions exited
transactionClosuresCommitted - closure-based transactions that committed
transactionClosuresRolledBack - closure-based transactions that rolled back
transactionClosuresNoPhysical - closure-based transactions that exited without a physical JDBC transaction
transactionClosuresFailed - closure-based transactions that failed before a normal commit or rollback outcome
physicalTransactionsBegun - physical JDBC transactions begun
physicalTransactionsBeginFailed - physical JDBC transactions that failed while beginning
physicalTransactionsCommitted - physical JDBC transactions committed
physicalTransactionsCommitFailed - physical JDBC transactions whose commit failed
physicalTransactionsRolledBack - physical JDBC transactions rolled back
physicalTransactionsRollbackFailed - physical JDBC transactions whose rollback failed
savepointsCreated - transaction savepoints created
savepointsRolledBack - transaction savepoints rolled back to
savepointsReleased - transaction savepoints released
statementsExecuted - statements that executed successfully
statementsFailed - statements that failed during execution
streamsOpened - streams that opened successfully
streamsOpenFailures - streams that failed before opening
streamsClosedNormally - opened streams that reached the end of the result set
streamsEarlyClosed - opened streams that closed before all rows were consumed
streamsCallbackFailed - opened streams whose caller-provided callback failed
streamsIterationFailed - opened streams whose result-set iteration failed
postTransactionOperationsRun - post-transaction operations that ran
postTransactionOperationsFailed - post-transaction operations that failed
Enclosing interface:
MetricsCollector

@ThreadSafe public static record MetricsCollector.Snapshot(@NonNull Long connectionsAcquiredStatementScope, @NonNull Long connectionsAcquiredTransactionScope, @NonNull Long connectionsFailedStatementScope, @NonNull Long connectionsFailedTransactionScope, @NonNull Long connectionReleaseFailuresStatementScope, @NonNull Long connectionReleaseFailuresTransactionScope, @NonNull Long transactionClosuresEntered, @NonNull Long transactionClosuresExited, @NonNull Long transactionClosuresCommitted, @NonNull Long transactionClosuresRolledBack, @NonNull Long transactionClosuresNoPhysical, @NonNull Long transactionClosuresFailed, @NonNull Long physicalTransactionsBegun, @NonNull Long physicalTransactionsBeginFailed, @NonNull Long physicalTransactionsCommitted, @NonNull Long physicalTransactionsCommitFailed, @NonNull Long physicalTransactionsRolledBack, @NonNull Long physicalTransactionsRollbackFailed, @NonNull Long savepointsCreated, @NonNull Long savepointsRolledBack, @NonNull Long savepointsReleased, @NonNull Long statementsExecuted, @NonNull Long statementsFailed, @NonNull Long streamsOpened, @NonNull Long streamsOpenFailures, @NonNull Long streamsClosedNormally, @NonNull Long streamsEarlyClosed, @NonNull Long streamsCallbackFailed, @NonNull Long streamsIterationFailed, @NonNull Long postTransactionOperationsRun, @NonNull Long postTransactionOperationsFailed) extends Record
Counter snapshot for collectors that support in-process inspection.

Implementations may read counters independently without cross-counter atomicity. Callers that need invariant-consistent snapshots should drain in-flight work before reading.

Since:
4.2.0
Author:
Mark Allen