mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
25 lines
1.6 KiB
Java
25 lines
1.6 KiB
Java
package io.sentry;
|
|
|
|
import io.sentry.SendCachedEnvelopeFireAndForgetIntegration;
|
|
import io.sentry.util.Objects;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class SendFireAndForgetEnvelopeSender implements SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForgetFactory {
|
|
private final SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForgetDirPath sendFireAndForgetDirPath;
|
|
|
|
public SendFireAndForgetEnvelopeSender(SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForgetDirPath sendFireAndForgetDirPath) {
|
|
this.sendFireAndForgetDirPath = (SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForgetDirPath) Objects.requireNonNull(sendFireAndForgetDirPath, "SendFireAndForgetDirPath is required");
|
|
}
|
|
|
|
@Override // io.sentry.SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForgetFactory
|
|
public SendCachedEnvelopeFireAndForgetIntegration.SendFireAndForget create(IHub iHub, SentryOptions sentryOptions) {
|
|
Objects.requireNonNull(iHub, "Hub is required");
|
|
Objects.requireNonNull(sentryOptions, "SentryOptions is required");
|
|
String dirPath = this.sendFireAndForgetDirPath.getDirPath();
|
|
if (dirPath == null || !hasValidPath(dirPath, sentryOptions.getLogger())) {
|
|
sentryOptions.getLogger().log(SentryLevel.ERROR, "No cache dir path is defined in options.", new Object[0]);
|
|
return null;
|
|
}
|
|
return processDir(new EnvelopeSender(iHub, sentryOptions.getSerializer(), sentryOptions.getLogger(), sentryOptions.getFlushTimeoutMillis(), sentryOptions.getMaxQueueSize()), dirPath, sentryOptions.getLogger());
|
|
}
|
|
}
|