Package io.sentry
Class ShutdownHookIntegration
- java.lang.Object
-
- io.sentry.ShutdownHookIntegration
-
- All Implemented Interfaces:
Integration,java.io.Closeable,java.lang.AutoCloseable
public final class ShutdownHookIntegration extends java.lang.Object implements Integration, java.io.Closeable
Registers hook that flushesHubwhen main thread shuts down.
-
-
Constructor Summary
Constructors Constructor Description ShutdownHookIntegration()ShutdownHookIntegration(@NotNull java.lang.Runtime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidregister(@NotNull IHub hub, @NotNull SentryOptions options)Registers an integration
-
-
-
Method Detail
-
register
public void register(@NotNull @NotNull IHub hub, @NotNull @NotNull SentryOptions options)Description copied from interface:IntegrationRegisters an integration- Specified by:
registerin interfaceIntegration- Parameters:
hub- the Huboptions- the options
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-