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

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

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

import com.rollbar.api.payload.Payload;
import com.rollbar.notifier.sender.result.Response;
import org.reactivestreams.Publisher;

/**
 * Sender interface to asynchronously send the payload to Rollbar.
 */
public interface Sender extends AutoCloseable {
  /**
   * Sends the payload.
   *
   * @param payload the payload.
   * @return A {@link Publisher} that will execute the operation once a subscriber requests it.
   */
  Publisher send(Payload payload);

  void close(boolean wait);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy