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 flushesHub
when 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 void
close()
void
register(@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:Integration
Registers an integration- Specified by:
register
in interfaceIntegration
- Parameters:
hub
- the Huboptions
- the options
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-