Example usage for org.springframework.data.redis.listener RedisMessageListenerContainer isActive

List of usage examples for org.springframework.data.redis.listener RedisMessageListenerContainer isActive

Introduction

In this page you can find the example usage for org.springframework.data.redis.listener RedisMessageListenerContainer isActive.

Prototype

public final boolean isActive() 

Source Link

Document

Return whether this container is currently active, that is, whether it has been set up but not shut down yet.

Usage

From source file:org.springframework.data.redis.listener.SubscriptionConnectionTests.java

@After
public void tearDown() throws Exception {
    for (RedisMessageListenerContainer container : containers) {
        if (container.isActive()) {
            container.destroy();//from www .jav  a 2s.  co m
        }
    }
}