javax.management.remote

Class NotificationResult

  • All Implemented Interfaces:
    Serializable

    public class NotificationResult
    extends Object
    implements Serializable

    Result of a query for buffered notifications. Notifications in a notification buffer have positive, monotonically increasing sequence numbers. The result of a notification query contains the following elements:

    • The sequence number of the earliest notification still in the buffer.
    • The sequence number of the next notification available for querying. This will be the starting sequence number for the next notification query.
    • An array of (Notification,listenerID) pairs corresponding to the returned notifications and the listeners they correspond to.

    It is possible for the nextSequenceNumber to be less than the earliestSequenceNumber. This signifies that notifications between the two might have been lost.

    Since:
    1.5
    See Also:
    Serialized Form
    • Constructor Detail

      • NotificationResult

        public NotificationResult(long earliestSequenceNumber,
                          long nextSequenceNumber,
                          TargetedNotification[] targetedNotifications)

        Constructs a notification query result.

        Parameters:
        earliestSequenceNumber - the sequence number of the earliest notification still in the buffer.
        nextSequenceNumber - the sequence number of the next notification available for querying.
        targetedNotifications - the notifications resulting from the query, and the listeners they correspond to. This array can be empty.
        Throws:
        IllegalArgumentException - if targetedNotifications is null or if earliestSequenceNumber or nextSequenceNumber is negative.
    • Method Detail

      • getEarliestSequenceNumber

        public long getEarliestSequenceNumber()
        Returns the sequence number of the earliest notification still in the buffer.
        Returns:
        the sequence number of the earliest notification still in the buffer.
      • getNextSequenceNumber

        public long getNextSequenceNumber()
        Returns the sequence number of the next notification available for querying.
        Returns:
        the sequence number of the next notification available for querying.
      • getTargetedNotifications

        public TargetedNotification[] getTargetedNotifications()
        Returns the notifications resulting from the query, and the listeners they correspond to.
        Returns:
        the notifications resulting from the query, and the listeners they correspond to. This array can be empty.
      • toString

        public String toString()
        Returns a string representation of the object. The result should be a concise but informative representation that is easy for a person to read.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 01/09/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/management/remote/NotificationResult.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, NotificationResult

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut