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

com.xiaomi.infra.galaxy.talos.producer.UserMessageCallback 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.producer;

/**
 * Note: this interface is not thread-safe
 */
public interface UserMessageCallback {

  /**
   * Implement this method to process messages that successfully put to server
   * user can get 'messageList', 'partitionId' and 'isSuccessful' by userMessageResult
   */
  public void onSuccess(UserMessageResult userMessageResult);

  /**
   * Implement this method to process messages failed to put to server
   * user can get 'messageList', 'partitionId' and 'cause' by userMessageResult
   */
  public void onError(UserMessageResult userMessageResult);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy