1 | <?php |
||
12 | class ExchangeType |
||
13 | { |
||
14 | /** |
||
15 | * Route messages to all bindings with a routing key that matches exactly |
||
16 | * the routing key of the message. |
||
17 | */ |
||
18 | const DIRECT = 'direct'; |
||
19 | |||
20 | /** |
||
21 | * Route messages to all bindings. The routing key is ignored. |
||
22 | */ |
||
23 | const FANOUT = 'fanout'; |
||
24 | |||
25 | /** |
||
26 | * Route messages to all bindings with a routing key whose pattern matches |
||
27 | * the routing key of the messages. |
||
28 | */ |
||
29 | const TOPIC = 'topic'; |
||
30 | |||
31 | /** |
||
32 | * Route messages to all bindings with headers that match the message |
||
33 | * headers. The routing key is ignored. |
||
34 | */ |
||
35 | const HEADERS = 'headers'; |
||
36 | |||
37 | /** |
||
38 | * Check whether this exchange type requires a routing key when publishing |
||
39 | * a message. |
||
40 | */ |
||
41 | public static function requiresRoutingKey() |
||
45 | } |
||
46 |