public class AmqpEventService extends Object implements EventService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_AMQP_EXCHANGE_NAME
The configuration key controlling the AMQP exchange name.
|
static String |
CONFIG_AMQP_IMMEDIATE
The configuration key controlling whether publishing is immediate.
|
static String |
CONFIG_AMQP_MANDATORY
The configuration key controlling whether publishing is mandatory.
|
static String |
CONFIG_AMQP_ROUTING_KEY
The configuration key controlling the AMQP routing key.
|
static String |
CONFIG_AMQP_URI
The configuration key controlling the AMQP connection URI.
|
| Constructor and Description |
|---|
AmqpEventService()
Create an AMQP publisher.
|
AmqpEventService(EventSerializationService serializer,
com.rabbitmq.client.Channel channel)
Create an AMQP publisher.
|
AmqpEventService(EventSerializationService serializer,
com.rabbitmq.client.Channel channel,
String exchangeName,
String routingKey)
Create an AMQP publisher.
|
AmqpEventService(EventSerializationService serializer,
com.rabbitmq.client.Channel channel,
String exchangeName,
String routingKey,
boolean mandatory,
boolean immediate)
Create an AMQP publisher.
|
public static final String CONFIG_AMQP_EXCHANGE_NAME
public static final String CONFIG_AMQP_ROUTING_KEY
public static final String CONFIG_AMQP_MANDATORY
public static final String CONFIG_AMQP_IMMEDIATE
public static final String CONFIG_AMQP_URI
public AmqpEventService()
@Inject public AmqpEventService(EventSerializationService serializer, com.rabbitmq.client.Channel channel)
serializer - the event serializerchannel - the channelpublic AmqpEventService(EventSerializationService serializer, com.rabbitmq.client.Channel channel, String exchangeName, String routingKey)
serializer - the event serializerchannel - the channelexchangeName - the exchange nameroutingKey - the routing keypublic AmqpEventService(EventSerializationService serializer, com.rabbitmq.client.Channel channel, String exchangeName, String routingKey, boolean mandatory, boolean immediate)
serializer - the event serializerchannel - the channelexchangeName - the exchange nameroutingKey - the routing keymandatory - the mandatory settingimmediate - the immediate settingpublic void emit(Event event)
EventServiceemit in interface EventServiceevent - the event