blob: 61d9a3c2b09eea6f93aee253717ec306fb9e0ff1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package org.apache.qpid.server.exchange;
import java.util.UUID;
import org.apache.qpid.AMQException;
import org.apache.qpid.exchange.ExchangeDefaults;
import org.apache.qpid.framing.AMQShortString;
import org.apache.qpid.server.plugin.ExchangeType;
import org.apache.qpid.server.virtualhost.VirtualHost;
public class HeadersExchangeType implements ExchangeType<HeadersExchange>
{
public AMQShortString getName()
{
return ExchangeDefaults.HEADERS_EXCHANGE_CLASS;
}
public HeadersExchange newInstance(UUID id, VirtualHost host, AMQShortString name, boolean durable, int ticket,
boolean autoDelete) throws AMQException
{
HeadersExchange exch = new HeadersExchange();
exch.initialise(id, host, name, durable, ticket, autoDelete);
return exch;
}
public AMQShortString getDefaultExchangeName()
{
return ExchangeDefaults.HEADERS_EXCHANGE_NAME;
}
}
|