Package io.sentry
Class DeduplicateMultithreadedEventProcessor
java.lang.Object
io.sentry.DeduplicateMultithreadedEventProcessor
- All Implemented Interfaces:
EventProcessor
An event processor that deduplicates crash events of the same type that are simultaneously from
multiple threads. This can be the case for OutOfMemory errors or CursorWindowAllocationException,
basically any error related to allocating memory when it's low.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable LonggetOrder()Controls when this EventProcessor is invoked.@Nullable SentryEventprocess(@NotNull SentryEvent event, @NotNull Hint hint) May mutate or drop a SentryEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sentry.EventProcessor
process, process, process
-
Constructor Details
-
DeduplicateMultithreadedEventProcessor
-
-
Method Details
-
process
@Nullable public @Nullable SentryEvent process(@NotNull @NotNull SentryEvent event, @NotNull @NotNull Hint hint) Description copied from interface:EventProcessorMay mutate or drop a SentryEvent- Specified by:
processin interfaceEventProcessor- Parameters:
event- the SentryEventhint- the Hint- Returns:
- the event itself, a mutated SentryEvent or null
-
getOrder
Description copied from interface:EventProcessorControls when this EventProcessor is invoked.- Specified by:
getOrderin interfaceEventProcessor- Returns:
- order higher number = later, lower number = earlier (negative values may also be passed), null = latest (note: multiple event processors using null may lead to random ordering)
-