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)
Integration
register
in interface Integration
hub
- the Huboptions
- the optionspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException