org.eclipse.viatra.integration.mwe2

## Interface IPublishTo

- All Known Implementing Classes:
    PublishTo

      public interface IPublishTo

  Provides an interface for handling message publishing to a topic. The objects implementing the IPublishTo interface define a topic name, and an IMessageFactory object that is repsonsible for creating the messages sent to the specified topic.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `IMessageFactory<? extends java.lang.Object,? extends IMessage<? extends java.lang.Object>>` | `getFactory()`
    `java.lang.String` | `getTopicName()`
    `void` | `publishMessage(java.lang.Object parameter)`
    `void` | `setFactory(IMessageFactory<? extends java.lang.Object,? extends IMessage<? extends java.lang.Object>> factory)`
    `void` | `setTopicName(java.lang.String name)`

- - ### Method Detail

    - #### getTopicName

          java.lang.String getTopicName()

    - #### setTopicName

          void setTopicName(java.lang.String name)

    - #### getFactory

          IMessageFactory<? extends java.lang.Object,? extends IMessage<? extends java.lang.Object>> getFactory()

    - #### setFactory

          void setFactory(IMessageFactory<? extends java.lang.Object,? extends IMessage<? extends java.lang.Object>> factory)

    - #### publishMessage

          void publishMessage(java.lang.Object parameter)