F - The RoutingKeyFormatter type.public class ExchangeDefinition<F extends RoutingKeyFormatter>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ExchangeDefinition(java.lang.String name,
boolean durable,
boolean autoDelete,
F routingKeyFormatter) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.amqp.core.TopicExchange |
create()
Creates an instance of this exchange.
|
java.lang.String |
deriveQueueName(java.lang.String listeningService)
Derives a queue name for a listening service from the exchange definition.
|
protected static ExchangeBuilder |
event(java.lang.String scope,
java.lang.String event) |
F |
formatRoutingKey()
Formats the appropriate routing key.
|
java.lang.String |
name()
Gets the name of this exchange.
|
protected static ExchangeBuilder |
task(java.lang.String scope,
java.lang.String task) |
java.lang.String |
toString() |
protected ExchangeDefinition(java.lang.String name,
boolean durable,
boolean autoDelete,
F routingKeyFormatter)
protected static ExchangeBuilder event(java.lang.String scope, java.lang.String event)
protected static ExchangeBuilder task(java.lang.String scope, java.lang.String task)
public java.lang.String name()
public org.springframework.amqp.core.TopicExchange create()
TopicExchange.public F formatRoutingKey()
public java.lang.String deriveQueueName(java.lang.String listeningService)
listeningService - The name of the listening service.public java.lang.String toString()
toString in class java.lang.Object