public interface Publisher extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
PubSubMessage |
send(PubSubMessage message)
Sends a
PubSubMessage. |
default PubSubMessage |
send(String id,
byte[] content)
Send a message with an ID and content.
|
closedefault PubSubMessage send(String id, byte[] content) throws PubSubException
id - The ID associated with the message.content - The content of the message.PubSubMessage.PubSubException - if the messaging system throws an error.PubSubMessage send(PubSubMessage message) throws PubSubException
PubSubMessage. The message might be modified so the sent message is returned.message - The PubSubMessage to be sent.PubSubMessage.PubSubException - if the messaging system throws an error.Copyright © 2021. All rights reserved.