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

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

There is a newer version: 0.5.4
Show newest version
package com.rollbar.sender;

import com.rollbar.payload.Payload;

/**
 * Senders can send JSON string payloads to Rollbar.
 */
public interface Sender {
    /**
     * Send the payload to Rollbar returning the response
     * @param payload the payload to send
     * @return a {@link RollbarResponse} indicating what happened.
     */
    RollbarResponse send(Payload payload);

    /**
     * Send the json payload, handle the response with an object
     * @param payload the payload being sent
     * @param handler an object that can handle a rollbar response handler
     */
    void send(Payload payload, RollbarResponseHandler handler);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy