blob: 3cf7049b765b882cf35d2fe28e104c27fe9f3999 [file] [log] [blame]
/****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The ASF licenses this file *
* to you under the Apache License, Version 2.0 (the *
* "License"); you may not use this file except in compliance *
* with the License. You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, *
* software distributed under the License is distributed on an *
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
* KIND, either express or implied. See the License for the *
* specific language governing permissions and limitations *
* under the License. *
****************************************************************/
package org.apache.james.backends.rabbitmq;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import com.rabbitmq.client.AMQP;
public interface Constants {
boolean DURABLE = true;
boolean AUTO_DELETE = true;
boolean ALLOW_QUORUM = true;
boolean EXCLUSIVE = true;
boolean NO_LOCAL = true;
boolean AUTO_ACK = true;
boolean MULTIPLE = true;
String EMPTY_ROUTING_KEY = "";
boolean REQUEUE = true;
String SINGLE_ACTIVE_CONSUMER_ARGUMENT = "x-single-active-consumer";
boolean SINGLE_ACTIVE_CONSUMER = true;
Map<String, Object> WITH_SINGLE_ACTIVE_CONSUMER = ImmutableMap.of(Constants.SINGLE_ACTIVE_CONSUMER_ARGUMENT, Constants.SINGLE_ACTIVE_CONSUMER);
String DIRECT_EXCHANGE = "direct";
AMQP.BasicProperties NO_PROPERTIES = new AMQP.BasicProperties();
}