@Target(value=METHOD)
@Retention(value=CLASS)
public @interface MethodTransaction
naming
.
Overridden methods in derived classes are not instrumented unless the inheritance()
parameter is set
accordingly. If you specify @MethodTransaction on an abstract method, 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 annotated method.
|
ReentryInhibition |
reentryInhibition
Specify under what conditions this transaction should be created as a nested transaction.
|
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
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