Class EventMetaDataBuilderImpl

    • Constructor Detail

      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​()
        Constructs the EventMetaData with no properties set except the Universal-ID.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(Class<?> aPublisherType)
        Constructs the EventMetaData with the given properties.
        Parameters:
        aPublisherType - The type of the publisher.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(String aChannel)
        Constructs the EventMetaData with the given properties.
        Parameters:
        aChannel - The channel for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(EventMetaData aMetaData)
        Constructs the EventMetaData with the properties provided by the given EventMetaData instance.
        Parameters:
        aMetaData - The EventMetaData instance from which to get the properties.
    • Method Detail

      • getChannel

        public String getChannel​()
        Retrieves the channel from the channel property.
        Specified by:
        getChannel in interface ChannelAccessor
        Returns:
        The channel stored by the channel property.
      • getGroup

        public String getGroup​()
        Retrieves the group from the group property.
        Specified by:
        getGroup in interface GroupAccessor
        Returns:
        The group stored by the group property.
      • getAlias

        public String getAlias​()
        Retrieves the alias from the alias property.
        Specified by:
        getAlias in interface AliasAccessor
        Returns:
        The alias stored by the alias property.
      • getPublisherType

        public Class<?> getPublisherType​()
        The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.
        Specified by:
        getPublisherType in interface EventMetaData
        Returns:
        The type of the publisher who published the event.
      • getUniversalId

        public String getUniversalId​()
        Retrieves the UID from the UID property.
        Specified by:
        getUniversalId in interface UniversalIdAccessor
        Returns:
        The UID stored by the UID property.
      • setChannel

        public void setChannel​(String aChannel)
        Sets the channel for the channel property.
        Specified by:
        setChannel in interface ChannelAccessor.ChannelMutator
        Parameters:
        aChannel - The channel to be stored by the channel property.
      • setGroup

        public void setGroup​(String aGroup)
        Sets the group for the group property.
        Specified by:
        setGroup in interface GroupAccessor.GroupMutator
        Parameters:
        aGroup - The group to be stored by the group property.
      • setAlias

        public void setAlias​(String aAlias)
        Sets the alias for the alias property.
        Specified by:
        setAlias in interface AliasAccessor.AliasMutator
        Parameters:
        aAlias - The alias to be stored by the alias property.
      • setPublisherType

        public void setPublisherType​(Class<?> aPublisherType)
        The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.
        Specified by:
        setPublisherType in interface EventMetaData.EventMetaDataBuilder
        Parameters:
        aPublisherType - The type of the publisher who published the event.