@Target(value=TYPE)
@Retention(value=CLASS)
public @interface ClassTransaction
@NoTransaction
.
Any invocation of an instrumented method will create a transaction with the specified naming
.
Overridden methods in derived classes are not instrumented unless the inheritance()
parameter is set
accordingly. If you specify @ClassTransaction on an interface, you have to set inheritance()
to
something other than Mode.NONE, otherwise no method will be instrumented.
See the package overview for an overview of the perfino API.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
group
Specify a group name for the perfino UI configuration.
|
Inheritance |
inheritance
Specify how overridden methods in derived classes should be handled.
|
Part[] |
naming
Specify the name of the transactions that are created by the instrumented methods.
|
ReentryInhibition |
reentryInhibition
Specify under what conditions this transaction should be created as a nested transaction.
|
boolean |
staticMethods
Also intercept static methods.
|
public abstract Part[] naming
Part
for a detailed explanation.
You can pass a single @Part or an array of parts with the syntax {@Part(...), @Part(...), @Part(...)}.
public abstract java.lang.String group
public abstract Inheritance inheritance
If you set the inheritance parameter to something other than Mode.NONE, overridden and implemented
methods will be instrumented according to the rules in the Inheritance parameter.
See the documentation for Inheritance
for a detailed explanation.
public abstract ReentryInhibition reentryInhibition
public abstract boolean staticMethods