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

io.sentry.connection.Connection Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.4
Show newest version
package io.sentry.connection;

import io.sentry.event.Event;

import java.io.Closeable;

/**
 * Connection to a Sentry server, allowing to send captured events.
 */
public interface Connection extends Closeable {
    /**
     * Sends an event to the Sentry server.
     *
     * @param event captured event to add in Sentry.
     * @throws ConnectionException Thrown when an Event send fails.
     */
    void send(Event event) throws ConnectionException;

    /**
     * Add a callback that is called when an exception occurs while attempting to
     * send events to the Sentry server.
     *
     * @param eventSendCallback callback instance
     */
    void addEventSendCallback(EventSendCallback eventSendCallback);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy