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

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

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

import io.sentry.Hint;
import io.sentry.SentryEnvelope;
import io.sentry.cache.IEnvelopeCache;
import java.util.Collections;
import java.util.Iterator;
import org.jetbrains.annotations.NotNull;

public final class NoOpEnvelopeCache implements IEnvelopeCache {
  private static final NoOpEnvelopeCache instance = new NoOpEnvelopeCache();

  public static NoOpEnvelopeCache getInstance() {
    return instance;
  }

  @Override
  public void store(@NotNull SentryEnvelope envelope, @NotNull Hint hint) {}

  @Override
  public void discard(@NotNull SentryEnvelope envelope) {}

  @NotNull
  @Override
  public Iterator iterator() {
    return Collections.emptyIterator();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy