Java Code Examples for org.springframework.amqp.rabbit.core.RabbitAdmin#deleteExchange()

The following examples show how to use org.springframework.amqp.rabbit.core.RabbitAdmin#deleteExchange() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RabbitBinderModuleTests.java    From spring-cloud-stream-binder-rabbit with Apache License 2.0 5 votes vote down vote up
@After
public void tearDown() {
	if (context != null) {
		context.close();
		context = null;
	}
	RabbitAdmin admin = new RabbitAdmin(rabbitTestSupport.getResource());
	admin.deleteExchange("input");
	admin.deleteExchange("output");
}
 
Example 2
Source File: TestQueueCleaner.java    From sinavi-jfw with Apache License 2.0 5 votes vote down vote up
public static void cleaner() {
    RabbitAdmin admin = new RabbitAdmin(factory());
    admin.setAutoStartup(true);
    admin.deleteExchange("error.exchange");
    admin.deleteExchange("exception.exchange");
    admin.deleteQueue("recoverable.exception.messages.queue");
    admin.deleteQueue("unrecoverable.exception.messages.queue");
}
 
Example 3
Source File: TestQueueCleaner.java    From sinavi-jfw with Apache License 2.0 4 votes vote down vote up
public static void retryCleaner() {
    RabbitAdmin admin = new RabbitAdmin(factory());
    admin.setAutoStartup(true);
    admin.deleteExchange("retry.test.exchange");
    admin.deleteQueue("retry.test.queue");
}