Package io.sentry
Class ShutdownHookIntegration
java.lang.Object
io.sentry.ShutdownHookIntegration
- All Implemented Interfaces:
Integration,IntegrationName,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 integrationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sentry.IntegrationName
addIntegrationToSdkVersion, getIntegrationName
-
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
-