Package org.gcube.common.events
Annotation Interface Observes
Identifies callback methods in event observers.
Optional attributes are used to indicate:
- event qualifiers (
Anyby default); - whether the successful execution of the method is
Observes.Kind.criticalto the client. Non critical methods may beObserves.Kind.resilientorObserves.Kind.safe(the default), depending on whether they should or should not execute after previous critical failures; - the delay during which events are accumulated before being delivered.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlongThe minimum duration in milliseconds between the delivery of two subsequent events.The kind of the observerObserves.Kind.safeby default.String[]The event qualifiers. -
Field Summary
Fields
-
Field Details
-
Any
Default qualifier for events that should be observed by all observers regardless of specific qualifiers.- See Also:
-
-
Element Details
-
value
String[] valueThe event qualifiers.- Returns:
- the qualifiers,
Anyby default.
- Default:
- {"any"}
-
kind
Observes.Kind kindThe kind of the observerObserves.Kind.safeby default.- Returns:
- the kind
- Default:
- safe
-
every
long everyThe minimum duration in milliseconds between the delivery of two subsequent events.- Returns:
- the kind
- Default:
- 0L
-