public interface MessagePublisher
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the publisher by closing its underlying channel.
|
void |
publish(java.lang.Object event,
net.reini.rabbitmq.cdi.PublisherConfiguration<?> publisherConfiguration)
Publishes the given event using the given publisher configuration template.
|
void publish(java.lang.Object event,
net.reini.rabbitmq.cdi.PublisherConfiguration<?> publisherConfiguration)
throws PublishException
event - the event being published to RabbitMQpublisherConfiguration - the default publisher configurationPublishException - if the event could not be delivered to RabbitMQvoid close()