Package io.sentry
Class SentryWrapper
java.lang.Object
io.sentry.SentryWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <U> Callable<U>
wrapCallable
(@NotNull Callable<U> callable) Helper method to wrapCallable
static <U> Supplier<U>
wrapSupplier
(@NotNull Supplier<U> supplier) Helper method to wrapSupplier
-
Constructor Details
-
SentryWrapper
public SentryWrapper()
-
-
Method Details
-
wrapCallable
Helper method to wrapCallable
Clones the Hub before execution and restores it afterwards. This prevents reused threads (e.g. from thread-pools) from getting an incorrect state.
-
wrapSupplier
Helper method to wrapSupplier
Clones the Hub before execution and restores it afterwards. This prevents reused threads (e.g. from thread-pools) from getting an incorrect state.
-