public final class ShutdownHookIntegration extends java.lang.Object implements Integration, java.io.Closeable
Hub when main thread shuts down.| Constructor and Description |
|---|
ShutdownHookIntegration() |
ShutdownHookIntegration(@NotNull java.lang.Runtime runtime) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
register(@NotNull IHub hub,
@NotNull SentryOptions options)
Registers an integration
|
@TestOnly
public ShutdownHookIntegration(@NotNull
@NotNull java.lang.Runtime runtime)
public ShutdownHookIntegration()
public void register(@NotNull
@NotNull IHub hub,
@NotNull
@NotNull SentryOptions options)
Integrationregister in interface Integrationhub - the Huboptions - the optionspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException