com.rollbar.notifier.sender.Sender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rollbar-java Show documentation
Show all versions of rollbar-java Show documentation
For connecting your applications built on the JVM to Rollbar for Error Reporting
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();
}