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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
register
(@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, wait
Methods inherited from interface io.sentry.IntegrationName
addIntegrationToSdkVersion, getIntegrationName
-
Constructor Details
-
ShutdownHookIntegration
-
ShutdownHookIntegration
public ShutdownHookIntegration()
-
-
Method Details
-
register
Description copied from interface:Integration
Registers an integration- Specified by:
register
in interfaceIntegration
- Parameters:
hub
- the Huboptions
- the options
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-