Class VirtualClusterAspect
java.lang.Object
com.cockroachlabs.data.continuum.aop.VirtualClusterAspect
Applies Cockroach vCluster workload tagging to
VirtualCluster-annotated
methods: opens a transaction and issues SET LOCAL application_name for
the vCluster name and, when Workload is present, SET LOCAL
default_transaction_quality_of_service for the priority — then proceeds.
SET LOCAL scopes the tags to the transaction so pooled connections
are not polluted for the next borrower.
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualClusterAspect(org.springframework.transaction.PlatformTransactionManager txManager, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) -
Method Summary
Modifier and TypeMethodDescriptionaround(org.aspectj.lang.ProceedingJoinPoint pjp, VirtualCluster virtualCluster)
-
Constructor Details
-
VirtualClusterAspect
public VirtualClusterAspect(org.springframework.transaction.PlatformTransactionManager txManager, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
-
Method Details
-
around
public Object around(org.aspectj.lang.ProceedingJoinPoint pjp, VirtualCluster virtualCluster) throws Throwable - Throws:
Throwable
-