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

io.sentry.transport.NoOpTransport Maven / Gradle / Ivy

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

import io.sentry.SentryEnvelope;
import java.io.IOException;
import org.jetbrains.annotations.ApiStatus;

@ApiStatus.Internal
public final class NoOpTransport implements ITransport {

  private static final NoOpTransport instance = new NoOpTransport();

  public static NoOpTransport getInstance() {
    return instance;
  }

  private NoOpTransport() {}

  @Override
  public boolean isRetryAfter(String type) {
    return false;
  }

  @Override
  public TransportResult send(SentryEnvelope envelope) throws IOException {
    return TransportResult.success();
  }

  @Override
  public void close() throws IOException {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy