public class RabbitMQEventTopicPublisher
extends java.lang.Object
implements be.looorent.jflu.publisher.EventPublisher, java.lang.AutoCloseable
RoutingKeyBuilder).| Constructor and Description |
|---|
RabbitMQEventTopicPublisher(java.util.Properties properties)
Build a publisher using properties, whatever their source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected com.fasterxml.jackson.databind.ObjectMapper |
createJsonMapper() |
protected java.lang.String |
createRoutingKeyFrom(be.looorent.jflu.Event event) |
void |
publish(be.looorent.jflu.Event event) |
public RabbitMQEventTopicPublisher(java.util.Properties properties)
properties - contains properties from RabbitMQPropertyNamepublic void publish(be.looorent.jflu.Event event)
throws be.looorent.jflu.publisher.PublishingException
publish in interface be.looorent.jflu.publisher.EventPublisherbe.looorent.jflu.publisher.PublishingExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionprotected com.fasterxml.jackson.databind.ObjectMapper createJsonMapper()
protected java.lang.String createRoutingKeyFrom(be.looorent.jflu.Event event)