Package io.sentry
Class ShutdownHookIntegration
java.lang.Object
io.sentry.ShutdownHookIntegration
- All Implemented Interfaces:
Integration,Closeable,AutoCloseable
Registers hook that flushes
Hub when main thread shuts down.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidregister(@NotNull IHub hub, @NotNull SentryOptions options) Registers an integration
-
Constructor Details
-
ShutdownHookIntegration
-
ShutdownHookIntegration
public ShutdownHookIntegration()
-
-
Method Details
-
register
Description copied from interface:IntegrationRegisters an integration- Specified by:
registerin interfaceIntegration- Parameters:
hub- the Huboptions- the options
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-