Package io.temporal.activity
Annotation Type ActivityMethod
-
@Retention(RUNTIME) @Target(METHOD) public @interface ActivityMethod
Indicates that the method is an Activity method. This annotation applies only to Activity interface methods. Use it to override default Activity type name. Not required.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
name
Represents the name of the Activity type.
-
-
-
Element Detail
-
name
java.lang.String name
Represents the name of the Activity type. Default value is the method's name, with the first letter capitalized. Also consider usingActivityInterface.namePrefix()
. The prefix is ignored if the name is specified.Be careful with names that contain special characters, as these names can be used as metric tags. Systems like Prometheus ignore metrics which have tags with unsupported characters.
- Default:
- ""
-
-