Package com.cockroachlabs.crdb.annotations
package com.cockroachlabs.crdb.annotations
Runtime annotations that drive CockroachDB-aware behavior through the
dynamic-proxy engine.
The headline idea of this library: annotate a method, wrap the target with
Crdb.enhance(Object), and the boilerplate
try/catch around serialization conflicts, retries, and circuit
breaking simply disappears.
-
ClassDescriptionMarks the annotated method as an agent-callable tool.Wraps the annotated method in a circuit breaker.Retries the annotated method on CockroachDB serialization anomalies (SQLSTATE
40001/40P01) using adaptive exponential backoff.Marks the annotated method as a follower-read call.Pins the annotated method's execution to a CockroachDB region.Runs the annotated method inside a JDBC transaction (SERIALIZABLE by default).Routes the annotated method to a Cockroach vCluster (virtual cluster) for workload isolation on shared capacity.Tags the annotated method's workload priority/class for a Cockroach vCluster.Relative importance of a workload sharing a virtual cluster.