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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
register
(@NotNull IHub hub, @NotNull SentryOptions options) Registers an integration
-
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
-