javax.enterprise.concurrent

Interface ManagedTask

    • Field Detail

      • TRANSACTION

        static final String TRANSACTION
        Execution property to be returned in getExecutionProperties() or ContextService.createContextualProxy() to inform the Java™ EE Product Provider under which transaction should the task or proxy method of contextual proxy object be executed in. Valid values are:

        "SUSPEND" (the default if unspecified) - Any transaction that is currently active on the thread will be suspended and a UserTransaction (accessible in the local JNDI namespace as "java:comp/UserTransaction") will be available. The original transaction, if any was active on the thread, will be resumed when the task or contextual proxy object method returns.

        "USE_TRANSACTION_OF_EXECUTION_THREAD" - The contextual proxy object method will run within the transaction (if any) of the execution thread. A UserTransaction will only be available if it is also available in the execution thread (for example, when the proxy method is invoked from a Servlet or Bean Managed Transaction EJB). When there is no existing transaction on the execution thread, such as when running tasks that are submitted to a ManagedExecutorService or a ManagedScheduledExecutorService, a UserTransaction will be available.

        See Also:
        Constant Field Values
      • USE_TRANSACTION_OF_EXECUTION_THREAD

        static final String USE_TRANSACTION_OF_EXECUTION_THREAD
        Constant for the "USE_TRANSACTION_OF_EXECUTION_THREAD" value of the TRANSACTION execution property. See TRANSACTION.
        See Also:
        Constant Field Values
      • IDENTITY_NAME

        static final String IDENTITY_NAME
        Execution property to be returned in getExecutionProperties() or ContextService.createContextualProxy() to provide a String that identifies the task. It may be the name or ID that allow management facilities to inspect the task to determine the intent of the task and its state. Implementations should not depend upon any thread execution context and should typically return only readily-available instance data to identify the task.
        See Also:
        Constant Field Values
    • Method Detail

      • getManagedTaskListener

        ManagedTaskListener getManagedTaskListener()
        The ManagedTaskListener to receive notification of lifecycle events of this task.
        Returns:
        The ManagedTaskListener to receive notification of lifecycle events of this task, or null if it is not necessary to get notified of such events.
      • getExecutionProperties

        Map<String,String> getExecutionProperties()
        Provides additional information to the ManagedExecutorService or ManagedScheduledExecutorService when executing this task.

        Some standard property keys are defined in this class. Custom property keys may be defined but must not begin with "javax.enterprise.concurrent.".

        Returns:
        A Map<String, String> containing additional execution properties, or null if no additional information is provided for this task.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/enterprise/concurrent/ManagedTask.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com, ManagedTask (Java(TM) EE 7 Specification APIs)

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.