Interface PayaraClusteredCDIEvent

    • Method Detail

      • getInstanceDescriptor

        InstanceDescriptor getInstanceDescriptor()
        Returns the Instance Descriptor of the Sender
        Returns:
      • getProperties

        Properties getProperties()
        Returns the set of properties in the event
        Returns:
      • getProperty

        String getProperty​(String name)
        Returns the property value with the specified name
        Parameters:
        name - Name of the property to return
        Returns:
      • getProperty

        String getProperty​(String name,
                           String defaultValue)
        Returns the property value with the specified name
        Parameters:
        name - Name of the property to return
        defaultValue - Value to be returned if the property is not present
        Returns:
      • isLoopBack

        boolean isLoopBack()
        Returns true if the event was sent from the same JVM
        Returns:
      • setId

        void setId​(InstanceDescriptor id)
        Set the Intstance Descriptor
        Parameters:
        id -
      • setLoopBack

        void setLoopBack​(boolean loopBack)
        Set to true if the event should be sent to listeners in the same JVM
        Parameters:
        loopBack -
      • setProperty

        void setProperty​(String name,
                         String value)
        Sets a property in the event
        Parameters:
        name - Name of the property
        value - THe value of the property
      • getQualifiers

        Set<Annotation> getQualifiers()
        Returns the set of qualifiers on the event
        Returns:
      • addQualifiers

        void addQualifiers​(Set<Annotation> qualifiers)
                    throws IOException
        Adds the set of qualifiers to the event
        Parameters:
        qualifiers -
        Throws:
        IOException - in case of serialization of qualifiers fails