All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xiaomi.infra.galaxy.talos.client.SimpleTopicAbnormalCallback Maven / Gradle / Ivy

There is a newer version: 2.6.1.4
Show newest version
/**
 * Copyright 2015, Xiaomi.
 * All rights reserved.
 * Author: [email protected]
 */

package com.xiaomi.infra.galaxy.talos.client;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.xiaomi.infra.galaxy.talos.thrift.TopicTalosResourceName;

public class SimpleTopicAbnormalCallback implements TopicAbnormalCallback {
  private static final Logger LOG = LoggerFactory.getLogger(
      SimpleTopicAbnormalCallback.class);

  @Override
  public void abnormalHandler(TopicTalosResourceName topicTalosResourceName,
      Throwable throwable) {
    LOG.error("Topic abnormal exception: " + throwable.toString() + " for: " +
        topicTalosResourceName.getTopicTalosResourceName());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy