Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

29.9. Annotations for asynchronicity


The following annotations are used to declare an asynchronous method, as in the following example:
@Asynchronous public void scheduleAlert(Alert alert, 
                                        @Expiration Date date) { 
  ... 
}
Copy to Clipboard Toggle word wrap
@Asynchronous public Timer scheduleAlerts(Alert alert, 
                                          @Expiration Date date, 
                                          @IntervalDuration long interval) { 
  ... 
}
Copy to Clipboard Toggle word wrap
@Asynchronous
@Asynchronous
Copy to Clipboard Toggle word wrap
Specifies that the method call is processed asynchronously.
@Duration
@Duration
Copy to Clipboard Toggle word wrap
Specifies the parameter of the asynchronous call that relates to the duration before the call is processed (or first processed, for recurring calls).
@Expiration
@Expiration
Copy to Clipboard Toggle word wrap
Specifies the parameter of the asynchronous call that relates to the date and time at which the call is processed (or first processed, for recurring calls).
@IntervalDuration
@IntervalDuration
Copy to Clipboard Toggle word wrap
Specifies that an asynchronous method call recurs. The associated parameter defines the duration of the interval between recurrences.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat