code: @Override
  	public void publish(Event event) {
  
  		// Check state
  		if (status.get() == STATUS_STOPPED) {
  			return;
  		}
  
  		// Connected
  		if (event instanceof ConnectedEvent) {
  			if (status.compareAndSet(STATUS_CONNECTING, STATUS_CONNECTED)) {
  
  				// Redis connection is Ok
  				logger.info("Redis get-set connection are estabilished.");
  			}
  			return;
  		}
  
  		// Disconnected
  		if (event instanceof DisconnectedEvent) {
  			int s = status.getAndSet(STATUS_DISCONNECTED);
  			if (s != STATUS_DISCONNECTED) {
  				logger.info("Redis get-set connection aborted.");
  				reconnect();
  			}
  		}
  
  	}
docs: --- REDIS EVENT LISTENER METHODS ---