public final class SentryClient extends java.lang.Object implements ISentryClient
Constructor and Description |
---|
SentryClient(SentryOptions options,
@Nullable Connection connection) |
Modifier and Type | Method and Description |
---|---|
SentryId |
captureEvent(SentryEvent event,
@Nullable Scope scope,
@Nullable java.lang.Object hint) |
void |
close() |
void |
flush(long timeoutMills) |
boolean |
isEnabled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
captureEvent, captureEvent, captureEvent, captureException, captureException, captureException, captureException, captureMessage, captureMessage
@TestOnly public SentryClient(SentryOptions options, @Nullable @Nullable Connection connection)
public boolean isEnabled()
isEnabled
in interface ISentryClient
public SentryId captureEvent(SentryEvent event, @Nullable @Nullable Scope scope, @Nullable @Nullable java.lang.Object hint)
captureEvent
in interface ISentryClient
public void close()
close
in interface ISentryClient
public void flush(long timeoutMills)
flush
in interface ISentryClient