@Component
@ConditionalOnProperty(value="rabbitmq.enabled",
havingValue="true")
public class PubSubClientAdapter
extends java.lang.Object
implements io.soffa.core.pubsub.PubSubClient
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ROUTING_KEY |
| Constructor and Description |
|---|
PubSubClientAdapter(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
send(io.soffa.core.pubsub.Event event) |
void |
send(java.lang.String channel,
io.soffa.core.pubsub.Event event) |
void |
sendDelayed(io.soffa.core.pubsub.Event event,
int ttlInSeconds) |
void |
sendDelayed(java.lang.String channel,
io.soffa.core.pubsub.Event event,
int ttlInSeconds) |
public static final java.lang.String DEFAULT_ROUTING_KEY
public PubSubClientAdapter(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
public void send(io.soffa.core.pubsub.Event event)
send in interface io.soffa.core.pubsub.PubSubClientpublic void send(java.lang.String channel,
io.soffa.core.pubsub.Event event)
send in interface io.soffa.core.pubsub.PubSubClientpublic void sendDelayed(java.lang.String channel,
io.soffa.core.pubsub.Event event,
int ttlInSeconds)
sendDelayed in interface io.soffa.core.pubsub.PubSubClientpublic void sendDelayed(io.soffa.core.pubsub.Event event,
int ttlInSeconds)
sendDelayed in interface io.soffa.core.pubsub.PubSubClient