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

com.rollbar.notifier.sender.Sender Maven / Gradle / Ivy

Go to download

For connecting your applications built on the JVM to Rollbar for Error Reporting

There is a newer version: 2.0.0-alpha.1
Show newest version
package com.rollbar.notifier.sender;

import com.rollbar.api.payload.Payload;
import com.rollbar.notifier.sender.listener.SenderListener;
import java.util.List;

/**
 * Sender interface to send the payload to Rollbar.
 */
public interface Sender extends AutoCloseable {

  /**
   * Sends the payload getting notifications on the {@link SenderListener send callback} passed.
   *
   * @param payload the payload.
   */
  void send(Payload payload);

  /**
   * Registers a listener to get notifications of sending payloads through the
   * {@link SenderListener sender listener}.
   *
   * @param listener the listener.
   */
  void addListener(SenderListener listener);

  /**
   * Get the list of listeners registered.
   *
   * @return the list of listeners registered.
   */
  List getListeners();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy