public interface Publisher extends MessageChannel
There can be many publishers per message type.
Modifier and Type | Method and Description |
---|---|
io.spine.core.Ack |
publish(com.google.protobuf.Any id,
io.spine.server.integration.ExternalMessage message)
Publishes a given
ExternalMessage to the channel under a given ID. |
channelIdFor, id, isStale, targetType
@CanIgnoreReturnValue io.spine.core.Ack publish(com.google.protobuf.Any id, io.spine.server.integration.ExternalMessage message)
ExternalMessage
to the channel under a given ID.id
- an ID of the message packed into Any.message
- the message to publishAck