io.sentry.transport.NoOpTransport Maven / Gradle / Ivy
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